12Knocksinna / Office365itpros

Office 365 for IT Pros PowerShell examples
MIT License
1.28k stars 567 forks source link

Large number of "No Owners Found" #62

Closed damorris closed 1 year ago

damorris commented 1 year ago

I ran this and out of 10,900 plus groups that are teams enabled its reporting 3742 as not having any owners. I am not done checking but I believe over 75% of those 3742 groups do have at least 1 owner. Member and External Guest counts appear to be accurate.

12Knocksinna commented 1 year ago

The code to find group owners uses a Graph query:

$Uri = "https://graph.microsoft.com/v1.0/groups/" + $Group.Id + "/owners?" [array]$GroupData = Get-GraphData -Uri $Uri -AccessToken $Token

Can you try running this against a group that has an owner that's reported as ownerless to see what's returned? You could try this code using the Graph Explorer if you like.

12Knocksinna commented 1 year ago

By the way, just to be sure, what script are you referring to?

12Knocksinna commented 1 year ago

OK. I found a better way to check for owners. The script is updated to V5.8 with the fix. Please try that.