Skip to content

Understanding implications of "you need to be a SharePoint Administrator" #1575

Answered by jansenbe
Magnus-K-work asked this question in Q&A
Discussion options

You must be logged in to vote

@Magnus-K-work : all the test cases that create site collections using application permissions also call the DeleteSiteCollectionAsync method which under the covers calls the RecycleSiteCollectionAsync. Doing some testing with application permissions showed that for group connected sites (modern team site) this failed, for non group connected sites (e.g. communication site) this works. We're using the same logic as the one applied in SharePoint Admin center, if you want to recycle group connected site collections maybe using the graph approach can help here: https://learn.microsoft.com/en-us/graph/api/group-delete?view=graph-rest-1.0&tabs=http. You can experiment calling this API from PnP…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Magnus-K-work
Comment options

@jansenbe
Comment options

Answer selected by Magnus-K-work
@Magnus-K-work
Comment options

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