cancel
Showing results for 
Search instead for 
Did you mean: 

Create sharing link for a file or folder in SharePoint for specific people

Hi,

 

Currently in the Microsoft Flow 'Create sharing link for a file or folder' the Link Scope field only has the following options:

- Anyone with the link, including anonymous

- People in your organization

 

Please also add the following option which is available in SharePoint and OneDrive:

- Specific people

 

We really need to be able to create a sharing link just for specific people.

Status: New
Comments
Frequent Visitor

Hi @David_Nguyen,

 

Couple of silly questions. 

 

Can you use this approach to create a link for SharePoint web?

 

My thinking is yes as web is just another item in the "Site Pages" Library??

 

Also, could I specify several external users for the same link?

 

I will definitely will try this approach. This is amazing for lots of our automations. 

Regular Visitor

We need that too

it is a must for us

Regular Visitor

Hi @David_Nguyen

@DavidVidal

 

This flow might help a few it is not as complicated as other solutions.

PLEASE LET ME KNOW IF THIS WORKS FOR YOU.

this flow will Create a sharing link for a file or folder in SharePoint for specific people.(external emails)

I use this flow to create folders for RMA's and File Sharing.

GMAIL was slow during my testing. hotmail was quick.

 

toddcarr1_0-1599180860344.png

 

 

toddcarr1_1-1599089786917.png

 

toddcarr1_6-1599090089275.png

 

 

toddcarr1_7-1599090128044.png

 

 

toddcarr1_8-1599090163434.png

this is what the email looks like

toddcarr1_0-1599187315247.png

 

 

 

 

Regular Visitor

Yes, we also need that:

For specific people or, more important, O365 Group

 

New Member

Need that asap

Frequent Visitor

Please see the answer from David Nygen - as he has provided a way to achieve this. 

Regular Visitor

@kerridge23 

 

Why insist on a more complicated answer when there is a simple one and hey my email looks nicer.

 

Microsoft

 

@toddcarr1 @kerridge23 

 

I believe the code changed for the action. I tested and now we can use

'Grant access to an item or a folder' for external user.

 

 

image.png


 

https://docs.microsoft.com/en-us/sharepoint/dev/business-apps/power-automate/guidance/manage-list-it... 

New Member

@David_Nguyen, thanks a lot for your amazing tips ! 
In my case, I would like to get the shared link but for my "People with existing access" do you think it is possible with your method ? What would you change ? 

 

Thank in advance

 

Microsoft

Hi @puszes31 

 

Share People with existing access means you need to know if the recipients already have the access. 

 

Then you just need to use the Get File Properties and pass the Full Path to create a link

 

image.png

 

If you want to share using the SharePoint format, here it is:

 

Uri: _api/web/Lists(guid'887C029D-25BE-467D-947C-FDF147AD1BA9')/GetItemById(@{triggerBody()?['entity']?['ID']})/ForwardObjectLink

*Guid is the listid.

Body:

 

{
"peoplePickerInput":"[{\"Key\":\"@{triggerBody()['text']}\"}]",
"emailBody":""
}