Question

Is there any way to create site/sub-site using Microsoft Graph API?

I know I can do this using CSOM but I am interested in using Microsoft graph for this particular case.

Was it helpful?

Solution

According to Microsoft documentation,

There is Read-only support for site resources ( and no ability to create new sites) using Microsoft graph.

Source: Working with SharePoint sites in Microsoft Graph.


Additional:

I have read on GitHub (and tried also) that SharePoint Online site will be created automatically if you create a Office 365 group and assign the owners & members to the group.

Source: O365 Group Creation Does Not Immediately Create Site Collection.

Reference: Microsoft Graph - Create group.

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top