Hi, I am having the same issue as above. We are using the exact c# code as above but we are getting an empty list of values: . We have verified that sharepoints sites in our domain have groups and permissions set up. Any update on this?
How to programmatically get the permissions of all Sharepoint sites?
As part of a larger task, I have been asked to get a list of all guest users with access to Teams and/or SharePoint sites.
I was under the impression that I could get this by using REST API & MS Graph and getting a list of all SharePoint Sites using graph.microsoft.com/v1.0/sites and then use the IDs with graph.microsoft.com/beta/sites/<ID>/permissions in order to get the permissions. But that returns an empty value.
Prior to getting the permission ' Sites.FullControll.All', this command was erroring, while now it is not, so presumably it is working as intended.
So, how would I go about getting the permissions for all Teams & SharePoint sites in our org? It seems like something Graph should be able to do, but after spending days on it, I have not been able to find a way to do it.
I've been using Graph more and more for tasks, but this seems a bit of a blocker for me.