We are trying to retrieve a list of all users in our B2C directory, and include the group memberships for all users.
We found this query, but unfortunately it is not supported for B2C:
https://graph.microsoft.com/v1.0/users?$select=displayname&$expand=memberof
Are there any workarounds for a B2C tenant?
We've considered two solutions, but neither are scalable:
- iterating over each user and retrieving their membership
- iterating over all known groups and retrieving members