Hi @asaf1,
Thanks for reaching out to the Auth0 Community!
To accomplish this, you will need to use the Management API v2 Get a role’s users endpoint in conjunction with the Get users by ID endpoint.
After querying the list of user_id
’s associated with a role, you can pass user_id
to get the user profile.
Unfortunately, it’s not possible to use the Get a role’s users endpoint for more than one role.
However, you could get the use the Get roles endpoint and iteratively pass the Role ID to the Get a role’s users endpoint.
Unfortunately, this is not possible. You must query by Role ID.
I hope this answers your questions.
Please let me know if you have any other questions or concerns. I’d be happy to help.
Thank you.