Include Organization Roles in list / search users EP

Feature: Include user role information for a user assigned roles at the organization level.

Description: We need to include the roles a user has fields when we make a call to the get organization’s members. How we currently do it is:

  1. Call list/search users ep and query by the organization_id
  2. Call /organizations/<organization_id>/members until we get all the org members
  3. loop over the returned users from the list/search users and attach the additional fields.

This is not scalable and not a great solution. The list/search users ep has the ability to sort. It would be great if the /organizations/<organization_id>/members also had the ability to sort by the fields in order to get the same results.

Use-case: We are needing the ability to get users by a specific role, we also are needing to include the user’s role in a list. Where the user is assigned a role at the organization level you have no ability to view this information other than the limited /organizations/<organization_id>/members EP.

+1 for this request :+1:
I submitted a feature-request on the same topic last year. It would make working with organization-roles much easier.
Add sort-parameter to “Get Members” API-Endpoint - Auth0 Community

2 Likes