Hi team,
updating this topic will easy to implement solution. With the usage of
GET /api/v2/organizations/{id}/members
endpoint, you can fetch roles alongside members who belong to an organization.
Use the
fieldsparameter to optionally define the specific member details retrieved. Iffieldsis left blank, all fields (except roles) are returned.Member roles are not sent by default. Use
fields=rolesto retrieve the roles assigned to each listed member. To use this parameter, you must include theread:organization_member_rolesscope in the token.
https://auth0.com/docs/api/management/v2/organizations/get-members
Thanks
Dawid