Getting the Sharing Capabilities of a Site via API (Graph preferably)

Chris Dehon 30 Reputation points
2024-11-15T21:02:22.5466667+00:00

Hi All,

Is there a way to retrieve the sharing capabilities (Anyone/New & Existing Guest/Existing Guests/Only people in org) of a site using Graph or SharePoint REST API?

I have seen (on some old pages) that we need to us Get-SPOSite cmdlet for this.

Is that the current state of the art?

Thank you

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,327 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,056 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 108.6K Reputation points MVP
    2024-11-16T17:02:49.0066667+00:00

    Your only option currently is PowerShell, as the Graph API is yet to add support for site settings. That, and PnP PowerShell/CSOM.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.