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:
- Call list/search users ep and query by the organization_id
- Call /organizations/<organization_id>/members until we get all the org members
- 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.