SharePoint APIs to Get Sharing Settings

Karishma Trehan 0 Reputation points
2023-12-11T06:54:04.31+00:00

We're currently working with Microsoft SharePoint Sites, and in this use case, we need to retrieve access details from the Sharing Settings as outlined below. Does anyone have experience with the APIs that provide details for the following settings or information on documents shared within the organization?
Screenshot 2023-12-08 at 2.36.51 PM

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,767 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,603 questions
SharePoint Workflow
SharePoint Workflow
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Workflow: An orchestrated and repeatable pattern of business activity, enabling data transformation, service provision, and information retrieval.
569 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 34,661 Reputation points Microsoft Vendor
    2023-12-12T01:41:40.28+00:00

    Hi @Karishma Trehan,

    I would recommend you to use Rest api to get the data for share link. Please refer to following api

    _api/web/Lists(@a1)/GetItemById(@a2)/GetSharingInformation
    

    Refer to the article for more details

    https://cann0nf0dder.wordpress.com/2018/04/04/externally-sharing-getsharinginformation-rest-api/


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


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.