Skip to content

Create Site Collection - Unattended #289

Answered by jansenbe
anthonywhite asked this question in Q&A
Discussion options

You must be logged in to vote

@anthonywhite : Site collection creation is done using REST API's for the most part, creating a group connected site using App-Only uses a Graph API call. Code lives here: https://github.com/pnp/pnpframework/blob/dev/src/lib/PnP.Framework/Sites/SiteCollection.cs

Currently we do not yet have support for creating site collections in PnP Core SDK, but as mentioned by you when using a CSOM client context this works...the CSOM client context is just used to obtain an access token for the REST/Graph calls. We do plan to add support for site collection creation in PnP Core SDK going forward, just did not get to it yet

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@anthonywhite
Comment options

@jansenbe
Comment options

@anthonywhite
Comment options

Answer selected by anthonywhite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants