ODfB Get-SPOUser - Get all ODFB Secondary Owers

%3CLINGO-SUB%20id%3D%22lingo-sub-1876314%22%20slang%3D%22en-US%22%3EODfB%20Get-SPOUser%20-%20Get%20all%20ODFB%20Secondary%20Owers%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1876314%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20an%20issue%20and%20need%20to%20get%20a%20list%20of%20all%20secondary%20owners%20for%20all%20OneDrive%20URLs.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20been%20playing%20around%20with%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eget-spouser%20-site%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdomain-my.sharepoint.com%2Fpersonal%2FUser_domain_com%22%20rel%3D%22nofollow%20noreferrer%20noopener%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fdomain-my.sharepoint.com%2Fpersonal%2FUser_domain_com%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%7C%20Where-Object%20%7B%24_.IsSiteADmin%20-eq%20%E2%80%98True%E2%80%99%7D%20%7C%20FL%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhich%20returns%20the%20people%20but%20not%20sure%20how%20to%20get%20on%20all%20accounts%20and%20return%20URLs%20%26amp%3B%20Admins.%3C%2FP%3E%3CP%3EAny%20help%20would%20be%20great!!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1876314%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Eodfb%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneDrive%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%20Commands%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1877317%22%20slang%3D%22en-US%22%3ERe%3A%20ODfB%20Get-SPOUser%20-%20Get%20all%20ODFB%20Secondary%20Owers%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1877317%22%20slang%3D%22en-US%22%3E%3CP%3EUse%20the%20Get-SPOSite%2FGet-SPOSiteGroups%20as%20needed.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1883788%22%20slang%3D%22en-US%22%3ERe%3A%20ODfB%20Get-SPOUser%20-%20Get%20all%20ODFB%20Secondary%20Owers%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1883788%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3BThanks%20but%20Get-SPOSite%20doesnt%20include%20secondary%20owners%3C%2FP%3E%3C%2FLINGO-BODY%3E
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