Is it possible to generate a sharing link for SharePoint through the Graph API that is "People with existing access"?

Daniel Troyano 0 Reputation points

Is there a way, using the Graph API to create the same kind of link as you would if in SharePoint, you select Copy Link and then "People with existing access"?

I was reading through the documentation of for Create a sharing link for a DriveItem and it seems like you have to set the type of the link, which I don't want to do. I want it to inherit the permissions that have already been set. And it also seems like the only options for the scope don't describe my use case.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,334 questions
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,214 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 99,936 Reputation points MVP

    You should be able to set the scope value to existing access:

    |existingAccess|Only people who have already been granted access to the item through other means can access the item using this link. Only available in OneDrive for Business and SharePoint.|