I have a list of users and for each I want to generate a list of all SharePoint groups that user is in, across the whole tenant.
What is the best way to do this?
So far I can list every site in the tenant and then check for group membership in each site but this seems very inefficient.