Forum Discussion

Rohit404404's avatar
Rohit404404
Brass Contributor
Sep 07, 2022

Is there any way to generate Sharing Link without breaking inheritance on file

Hello
 
I had posted another question which i had posted here https://docs.microsoft.com/en-us/answers/questions/991989/create-sharing-link-using-csompnpframework.html?childToView=995490#comment-995490
 
 We basically need unique link on document that does not change with a change in file location.
 
While we got answer partly,  it led to another question which is, is there any way to get sharing link of a document in SPO without breaking its inheritance. Basically to generate sharing link with option of "Peopke with existing access" ?
 
Any way to have this by CSOM , Rest or Graph Api?
 
There are couple of options in CSOM , Rest and Graph ApI (beta) ..however they all have option of anonymous or organization sharing link whi h caused breaking inheritance. 
 
We are going to gave large number of documents in library and unique permission will not help.
 
https://docs.microsoft.com/en-us/graph/api/listitem-createlink?view=graph-rest-beta&tabs=http
 

2 Replies

Resources