Katsuma Narisawa
Katsuma Narisawa

Reputation: 3

Fetch all sites from SharePoint by Microsoft Graph API

Does anyone know how I can fetch all sites from my SharePoint by using Microsoft Graph API?

I saw this documents but it seemed that there are no API to list sites.

And I saw this questions but answer was there were no ways. List Microsoft Sharepoint Sites with Microsoft Graph

Could you help me?

Upvotes: 0

Views: 2314

Answers (1)

Jerry
Jerry

Reputation: 3615

Currently Graph API supported to get all SharePoint sites:

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

You can test in Graph Explorer firstly:

enter image description here

Reference:

Retrieve Site Collections And SubSites Using Microsoft Graph API

Upvotes: 1

Related Questions