Create password protected anonymous link through REST API or PowerShell

%3CLINGO-SUB%20id%3D%22lingo-sub-751088%22%20slang%3D%22en-US%22%3ECreate%20password%20protected%20anonymous%20link%20through%20REST%20API%20or%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-751088%22%20slang%3D%22en-US%22%3E%3CP%3EHello!%3C%2FP%3E%3CP%3EI've%20seen%20that%20is%20possible%20to%20share%20a%20SharePoint%20item%20creating%20a%20password%20protected%20anonymous%20link.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20document%20library%20in%20my%20team%20site%20where%20I%20have%20about%20300%20folders.%20Each%20folder%20is%20specific%20for%20a%20user%20that%20is%20not%20part%20of%20my%20domain.%20So%20my%20idea%20was%20to%20programmatically%20create%20password%20protected%20anonymous%20links%20and%20then%20send%20a%20mail%20to%20each%20user%20with%20its%20own%20link%20to%20a%20specific%20folder%20and%20provide%20the%20password.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20seen%20there%20is%26nbsp%3B%3CSTRONG%3ECreateAnonymousLink%3C%2FSTRONG%3Emethod%2C%20but%20it%20seems%20not%20supported%20the%20password%20protection%20creation%20yet.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20that%20correct%20or%20is%20it%20just%20not%20documented%3F%20Is%20there%20any%20way%20to%20do%20this%20via%20REST%20API%20or%20with%20other%20methods%20(e.g.%20PowerShell)%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-751088%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPIs%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
New Contributor

Hello!

I've seen that is possible to share a SharePoint item creating a password protected anonymous link.

 

I have a document library in my team site where I have about 300 folders. Each folder is specific for a user that is not part of my domain. So my idea was to programmatically create password protected anonymous links and then send a mail to each user with its own link to a specific folder and provide the password.

 

I've seen there is CreateAnonymousLink method, but it seems not supported the password protection creation yet.

 

Is that correct or is it just not documented? Is there any way to do this via REST API or with other methods (e.g. PowerShell)?

0 Replies