ODfB Get-SPOUser - Get all ODFB Secondary Owers

Occasional Contributor

We have an issue and need to get a list of all secondary owners for all OneDrive URLs.

 

I've been playing around with

 

get-spouser -site https://domain-my.sharepoint.com/personal/User_domain_com | Where-Object {$_.IsSiteADmin -eq ‘True’} | FL

 

Which returns the people but not sure how to get on all accounts and return URLs & Admins.

Any help would be great!!

2 Replies

Use the Get-SPOSite/Get-SPOSiteGroups as needed.

@Vasil Michev Thanks but Get-SPOSite doesnt include secondary owners