Search users with roles

Using machine to machine api how do I search for my users with a certain role for example business. I am required to grab a list of such users.

Here is a shape of my user:
user: { app_metadata: roles: [‘business’] }

Ideally I want to pass a query to my auth0 backend api which would return a list of users with such role.

Hi @auth015,

Have you looked at this endpoint?!/Roles/get_role_user

It will work if you are using the authorization core.

Hope this helps,

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.