PerditusP
ZITADEL12mo ago
36 replies
Perditus

Fetch a List of users in a WebApp

Hello Zitadel Team! 👋

I am using a Self-Hosted instance of Zitadel and I was wondering If I could possibly fetch a list of all available users in the Organization so a possible function like: Dropdown to choose a user responsible for something or whatever.

I am trying this:
https://zitadel.com/docs/apis/resources/user_service_v2/user-service-list-users
but it needs a bearer token, thing is, why should I use the logged user one? is it possible to make a global token or something to achieve this? is there a different way?
Search for users. By default, we will return all users of your instance that you have permission to read. Make sure to include a limit and sorting for pagination.
ZITADEL Docs
Was this page helpful?