Get Users with Roles - ReVisit

I was reading this thread: Get users AND all assigned roles

Is it still the way to get Users with their Roles?

Hi @amed

Welcome back to the Auth0 community!

Yes, the user’s roles are retrieved via the /roles endpoint as mentioned in our documentation.

As an alternative, you can set custom claims in order to have those roles sent via the access token so that they are accessible after login without making an API call.

If you have any other questions, feel free to leave a reply!

Kind Regards,
Nik

1 Like