Forum Discussion
Laxman V
Apr 18, 2021Brass Contributor
Retrieve all site collections names (O365 SharePoint)where user belong to.
Would like to retrieve (Tenant) All Site collections names where user belongs to (except everyone group). I tried with SharePoint Search Api (/_layouts/15/search.aspx/sites?p=1&q=SharePoint) but I h...
SeanMcAvinue
Apr 20, 2021MVP
You're best bet would be to use PnPOnline or possible M365Cli to loop through the sites and process members looking to match your user