You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
get_all_organization_members should support fields #534
The endpoint for fetching all Organization members allows us to pass a fields parameter, specifically to include all member's roles in the response. The python library hides this option, and it would be much more performant to allow us to get all roles attached in one request instead of n^2 requests to fetch all users and then each user's roles in a separate request for each.
Describe the ideal solution
There are two ways it could play out, either by adding a include_roles flag, or by providing access to add more paramters via ** args to this and other functions.
Alternatives and current workarounds
The current way we have to do this is to do the following;
Fetch all users in an organization
Iterate over each user, sending a new request to fetch that user's roles specifically
Alternatively, we have been accessing variables and functions we shouldn't be, running something like;
Activity
adamjmcgrath commentedon Oct 12, 2023
Thanks for raising this @freyamade - We have some work planned to update the SDKs with this new parameter, should happen in the next couple of weeks
freyamade commentedon Oct 13, 2023
Thank you so much 🙏
[SDK-4656] Add fields to all_organization_members (#537)