1
votes

Is it possible with Microsoft Graph to retrieve the main sites without retrieving the subsites? I am using the following URL to retrieve these sites:

https://graph.microsoft.com/v1.0/sites?search=*

The problem is it also retrieves the subsites. At the moment I bypass this problem by filtering out the items that do not have a root object {} returned: root object:
root object.

1

1 Answers

1
votes

You could try this endpoint :

https://graph.microsoft.com/v1.0/sites?search=contentclass:STS_Site