How to get all members of a site

Copper Contributor

Hi,

 

I'm trying to see if there's a way to get all members of a root site using the graph api or otherwise. I see there's a way to get the root site for a group https://docs.microsoft.com/en-us/graph/api/site-get?view=graph-rest-1.0&tabs=http. However, I am looking for some way to list all the sites and all the members for them. So essentially I can list the sites using https://graph.microsoft.com/v1.0/sites?search=* but that still doesn't tell which ones are associated with groups.

 

Thanks!

1 Reply

@sharvanath I do not know if this is possible through MS Graph. Perhaps you could try it out through PowerShell?