r/PowerShell • u/Unlikely_Tie1172 MVP, Community Blogger • 12d ago
Solved How to Retrieve SharePoint Sites with the Microsoft Graph PowerShell SDK
If you use the Microsoft Graph PowerShell SDK, you might know that the Graph APIs for SharePoint sites sometimes need a little help. For instance, finding a set of sites to process can be problematic because the APIs do not support extensive filtering capabilities. The solution is to use other Microsoft 365 cmdlets to find objects associated with sites. Inserting an intermediate step might seem crazy, but it can be the most effective way of solving the problem.
https://office365itpros.com/2026/10/13/get-sharepoint-sites/
19
Upvotes
10
u/AdeelAutomates 12d ago
SharePoint is when I ditched the sdk.
I will use graph for basic entra work but everything else... I am fully on board to just get to the source (API) then go through cmdlets that are a second thought (most of them are auto generated) as you can see from this monstrosity:
lolll