Trying to get a list of Teams a specific user has ownership with Graph api.
Any assistance is much appreciated.
This command will provide a list of teams but you need to get the group id first: https://graph.microsoft.com/beta/groups/{id}/owners
I tried the following but I couldn't get the correct results. https://graph.microsoft.com/beta/groups?$expand=owners($filter=userprinciplename eq '<>'&$select=id,displayname,userprinciplename)&$filter=resourceProvisioningOptions/Any(x:x eq 'Team')