I'm trying to figure out a correct way to list our Office 365 groups that have Microsoft Teams linked to them.
However, when I run this request, it's not returning all of our O365 groups: https://graph.microsoft.com/v1.0/groups
Then again, this request will return all of the groups: https://graph.microsoft.com/v1.0/groups?$orderby=displayName
Finally, if I try searching for the groups in PowerShell, this happens:
- Get-AzureADGroup (with Azure Active Directory PowerShell Version 2)
- NOT OK - Only some groups returned
- Get-MsolGroup (with Azure Active Directory PowerShell Version 1)
- OK - All groups returned
- Get-AzureADGroup -ObjectId
- Using the ID found with Get-MsolGroup
- OK - The group is found even though it was not in the list of all groups
So I have to say I'm a bit confused. Any idea of what's going on? What's the request I should use in Graph API to list (and potentially update) all O365 groups?