web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sharepoint folder shar...
Power Automate
Unanswered

Sharepoint folder share approval on behalf of external member

(0) ShareShare
ReportReport
Posted on by 12

Good Day people of the Flow,

 

We have a few Sharepoint Team sites that have access only to the members in that department but we do work with external clients, contractors or from time to time other teams within our organization. Instead of allowing access to the whole document library we typically only give access to a specific file or folder for external members. This is done via the manual route...

I want to know if it is possible for me to create a flow where members inside a sharepoint team can select a file or folder and request access on behalf of an external member? This should then fire of a mail to me which I can then approve or not?

 

So basically because the external users do not have access to the sharepoint document library they can't see the file that they need access to, hence the reason I want the existing team members inside that team to be able to request access on behalf of an external user.

Categories:
I have the same question (0)
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @DTL747  do you want to share folder or document to specific email address of external user or share the anyone with link can access?

  • DTL747 Profile Picture
    12 on at

    Hi thanks for getting back to me!

     

    I would like to share to a specific external user email and they should be allowed to edit. If the internal team wants to share a folder with a external user the flow should allow them to select a external user and submit for approval.

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @DTL747  you can create a flow with trigger, For Selected Item, and add manual input for email address, then you need to use sharelink API using Send HTTP Request to SharePoint action to share a folder or file with external user

  • DTL747 Profile Picture
    12 on at

    Hi Anna,

     

    I am not sure if I am on the right path? This gave me an error...

     

     

    Inked1_LI.jpg

     

     

    2.JPG

     

     

     

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @DTL747 the Send HTTP Request to SharePoint action needs to be configured differently

     

    Add  action "Get file properties" just before "Send an HTTP request to SharePoint" action and configure it as follows:

    annajhaveri_1-1616513816778.png

     

     

    Then configure Send HTTP request to SharePoint action as follows,

     

    annajhaveri_2-1616513886721.png

     

    Below is the Uri to be used on this action, replace

    _api/web/GetFileByUrl(@v)/ListItemAllFields/ShareLink?@v='@{outputs('Get_file_properties')?['body/{FullPath}']}'

     

    Configure below json payload in Body parameter

    {
    "request":{
    "createLink":true,
    "settings":{
    "linkKind":7,
    "expiration":null,
    "role":2,
    "restrictShareMembership":true,
    "updatePassword":false,
    "password":""
    },
    "peoplePickerInput":"[{\"Key\":\"@{triggerBody()['text']}\",\"DisplayText\":\"@{triggerBody()['text']}\",\"IsResolved\":true,\"Description\":\"@{triggerBody()['text']}\",\"EntityType\":\"\",\"EntityData\":{\"SPUserID\":\"@{triggerBody()['text']}\",\"Email\":\"@{triggerBody()['text']}\",\"IsBlocked\":\"False\",\"PrincipalType\":\"UNVALIDATED_EMAIL_ADDRESS\",\"AccountName\":\"@{triggerBody()['text']}\",\"SIPAddress\":\"@{triggerBody()['text']}\",\"IsBlockedOnODB\":\"False\"},\"MultipleMatches\":[],\"ProviderName\":\"\",\"ProviderDisplayName\":\"\"}]",
    "emailData":{
    "body":"",
    "subject":""
    }
    }
    }
    
     

     

     

  • DTL747 Profile Picture
    12 on at

    Hi Anna,

    Thanks for all the help.

     

    I am getting a timeout error. "BadGateway"

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @DTL747  okay, can you share screenshot of errored action from flow run, i would like to know more details of error

  • DTL747 Profile Picture
    12 on at

    Hi Anna,

     

    Apologies for only replying now. Please see...

     

     

    Inked1_LI.jpgInked2_LI.jpg

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard