SOLVED

SharePoint Access Approvals with Flow

%3CLINGO-SUB%20id%3D%22lingo-sub-563834%22%20slang%3D%22en-US%22%3ESharePoint%20Access%20Approvals%20with%20Flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-563834%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Everyone%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20set%20up%20an%20approval%20flow%20for%20the%20SharePoint%20access%20requests.%20So%20here%20is%20the%20scenario%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20a%20library%20of%20folders%20with%20confidential%20information.%20It%20has%20access%20permits%20only%20to%20small%20group%20of%20people.%20But%20now%20and%20then%2C%20other%20people%20need%20to%20work%20on%20some%20of%20the%20folders%20and%20they%20request%20access%20from%20me%20as%20I%20am%20the%20site%20owner.%20As%20we%20are%20big%20organization%2C%20it%20is%20very%20difficult%20to%20understand%20if%20the%20requester%20should%20have%20their%20access%20rights%20granted.%20My%20solution%20idea%20is%20to%20build%20up%20a%20flow%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-Whenever%20an%20access%20request%20arrives%20from%20a%20colleague%20(lets%20give%20them%20a%20name%3A%20Jack)%2C%20get%20Jack's%20manager%20user%20account%3C%2FP%3E%3CP%3E-Start%20an%20approval%20process%20with%20email%20of%20the%20Jack's%20manager%3C%2FP%3E%3CP%3E-Once%20manager%20approves%2C%20give%20access%20rights%20to%20Jack%3C%2FP%3E%3CP%3E-If%20his%20manager%20denies%2C%20reject%20Jack's%20request%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUnfortunately%2C%20I%20couldn't%20find%20the%20trigger%20I%20need.%20Does%20anyone%20have%20an%20idea%20about%20how%20to%20solve%20it%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20return%20will%20be%20appreciated!%20Thanks%20in%20advance.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20Regards%2C%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EYigit%20Y%C3%BCr%C3%BCker%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-563834%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-572288%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Access%20Approvals%20with%20Flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-572288%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F275056%22%20target%3D%22_blank%22%3E%40Yigit_Yuruker%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20your%20notification%20to%20the%20request%20comes%20as%20an%20email%20(I'm%20making%20an%20assumption%20as%20I'm%20not%20a%20SP%20site%20owner%20so%20I%20don't%20see%20how%20you%20get%20them)%2C%20you%20could%20try%20using%20%3CSTRONG%3EOn%20new%20email%3C%2FSTRONG%3E%20and%20filter%20out%20to%20the%20words%20in%20the%20%3CSTRONG%3ESubject%3C%2FSTRONG%3E%20line.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20will%20then%20let%20you%20configure%20the%20approvals%20and%20take%20it%20from%20there.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20620px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F113672iC04A059B02184CF6%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22capture20190516130246136.png%22%20title%3D%22capture20190516130246136.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20that%20helps.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3CP%3EDamien%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-614922%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Access%20Approvals%20with%20Flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-614922%22%20slang%3D%22en-US%22%3E%3CP%3EDear%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F89704%22%20target%3D%22_blank%22%3E%40Damien%20Rosario%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20message!%20I've%20tried%20your%20method%20but%20failed%20unfortunately.%20Access%20requests%20come%20from%20a%20common%20email%20address%20(no-reply%40sharepointonline.com)%20for%20every%20request.%20Therefore%2C%20setting%20a%20flow%20trigger%20with%20new%20mail%20won't%20work%20as%20I%20need%20this%20flow%20to%20be%20active%20only%20for%201%20library%20but%20not%20whole%20site.%20Also%2C%20I%20will%20need%20user%20name%20to%20be%20used%20on%20%22Get%20Manager%22%20action%20and%20it%20couldn't%20extract%20the%20user%20information%20from%20the%20email.%20But%20thank%20you%20anyway%2C%20I%20appreciate%20your%20support!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-636504%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Access%20Approvals%20with%20Flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-636504%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F275056%22%20target%3D%22_blank%22%3E%40Yigit_Yuruker%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOut%20of%20curiosity%2C%20are%20you%20able%20to%20please%20provide%20a%20redacted%20email%20(just%20hide%20the%20username%20or%20any%20other%20sensitive%20info)%20so%20I%20can%20see%20the%20content%20of%20the%20request%20that%20you%20receive%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20curious%20to%20see%20the%20roadblocks%20in%20the%20email%20and%20perhaps%20maybe%20come%20up%20with%20a%20creative%20solution%20depending%20on%20what's%20in%20it!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3CP%3EDamien%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-638021%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Access%20Approvals%20with%20Flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-638021%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Again%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F89704%22%20target%3D%22_blank%22%3E%40Damien%20Rosario%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20look%20like%20the%20attached.%20I've%20tried%20to%20exract%20information%20from%20the%20subject%20to%20%22Get%20User%22%20function%20but%20it%20didn't%20work%20unfortunately.%20Your%20support%20is%20appreciated!%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20Regards%2C%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EYigit%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-638022%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Access%20Approvals%20with%20Flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-638022%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Again%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F89704%22%20target%3D%22_blank%22%3E%40Damien%20Rosario%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20look%20like%20the%20attached.%20I've%20tried%20to%20exract%20information%20from%20the%20subject%20to%20%22Get%20User%22%20function%20but%20it%20didn't%20work%20unfortunately.%20Your%20support%20is%20appreciated!%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20Regards%2C%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EYigit%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-642425%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Access%20Approvals%20with%20Flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-642425%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F275056%22%20target%3D%22_blank%22%3E%40Yigit_Yuruker%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20info.%20These%20images%20appear%20to%20already%20be%20approved%20to%20access%20the%20Site%20Pages%20but%20I%20think%20I%20get%20the%20gist%20of%20what%20you%20are%20saying.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHave%20you%20thought%20about%20going%20down%20a%20different%20road%20and%20use%20Microsoft%20Forms%20to%20source%20the%20initial%20request%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EStep%201%3A%3C%2FSTRONG%3E%20Fill%20in%20some%20fields%20in%20the%20Microsoft%20Form%3C%2FP%3E%3CP%3Ee.g.%20Might%20be%20a%20drop%20down%20list%20of%20folder%20names%20within%20the%20site%20that%20people%20may%20need%20to%20access.%20The%20user%20will%20select%20the%20appropriate%20file.%20It%20may%20even%20only%20be%20this%20one%20field.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EStep%202%3A%3C%2FSTRONG%3E%20User%20submits%20the%20form.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EStep%203%3A%3C%2FSTRONG%3E%20Microsoft%20Flow%20picks%20up%20the%20form%20submission%20and%20sources%20the%20users%20manager%3C%2FP%3E%3CP%3E(a)%20Use%20'When%20a%20new%20response%20is%20submitted'%20as%20the%20trigger.%3C%2FP%3E%3CP%3E(b)%20Use%20'Get%20response%20details'%20to%20retrieve%20the%20forms%20info.%3C%2FP%3E%3CP%3E(c)%20Use%20'Get%20manager%20(V2)'%20using%20the%20responders%20email%20address%20(found%20in%20step%20b).%20This%20should%20bring%20up%20their%20managers%20details.%3C%2FP%3E%3CP%3E(d)%20You%20can%20extract%20the%20managers%20email%20address%20to%20use%20for%20the%20approvals%20process%20(use%20something%20like%20'Start%20and%20wait%20for%20an%20approval%20(V2)'.%3C%2FP%3E%3CP%3E(e)%20Manager%20reviews%20the%20approval%20and%20hits%20approve%2Freject.%3C%2FP%3E%3CP%3E(f)%20Use%20a%20Condition%20to%20then%20say%20If%3A%3C%2FP%3E%3CP%3E-%20Approve%2C%20then%20sends%20you%20an%20email%20to%20say%20so%20with%20the%20appropriate%20user%20details%2C%20manager%20details%2C%20etc%20to%20action.%3C%2FP%3E%3CP%3E-%20Reject%20then%20send%20a%20message%20to%20the%20requester%20saying%20that%20their%20access%20has%20been%20denied%20by%20their%20manager%20(I%20assume%20that%20you%20don't%20want%20to%20be%20bothered%20to%20know%20if%20someone%20has%20been%20denied).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheck%20out%20below%2C%20I've%20mocked%20up%20the%20first%20part%20of%20the%20process%20that%20I've%20just%20described.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20677px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F115874i531DBE0AF8F0239D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22capture20190524092117563.png%22%20title%3D%22capture20190524092117563.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20could%20embed%20the%20form%20into%20a%20SharePoint%20page%20that%20users%20can%20access%20when%20they%20need%20to%20make%20their%20request%20and%2For%20just%20send%20them%20the%20link%20to%20the%20form.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20might%20be%20a%20better%20way%20to%20go%20given%20the%20challenges%20with%20the%20SharePoint%20no-reply%20emails%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%20and%20best%20wishes%3C%2FP%3E%3CP%3EDamien%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Hello Everyone,

 

I would like to set up an approval flow for the SharePoint access requests. So here is the scenario;

 

We have a library of folders with confidential information. It has access permits only to small group of people. But now and then, other people need to work on some of the folders and they request access from me as I am the site owner. As we are big organization, it is very difficult to understand if the requester should have their access rights granted. My solution idea is to build up a flow;

 

-Whenever an access request arrives from a colleague (lets give them a name: Jack), get Jack's manager user account

-Start an approval process with email of the Jack's manager

-Once manager approves, give access rights to Jack

-If his manager denies, reject Jack's request 

 

Unfortunately, I couldn't find the trigger I need. Does anyone have an idea about how to solve it?

 

Any return will be appreciated! Thanks in advance.

 

Best Regards,


Yigit Yürüker

6 Replies
Highlighted

Hi @Yigit_Yuruker 

 

If your notification to the request comes as an email (I'm making an assumption as I'm not a SP site owner so I don't see how you get them), you could try using On new email and filter out to the words in the Subject line. 

 

This will then let you configure the approvals and take it from there.

 

capture20190516130246136.png

 

Hope that helps.

 

Cheers

Damien

 

Highlighted

Dear @Damien Rosario ,

 

Thank you for your message! I've tried your method but failed unfortunately. Access requests come from a common email address (no-reply@sharepointonline.com) for every request. Therefore, setting a flow trigger with new mail won't work as I need this flow to be active only for 1 library but not whole site. Also, I will need user name to be used on "Get Manager" action and it couldn't extract the user information from the email. But thank you anyway, I appreciate your support! 

Highlighted

Hi @Yigit_Yuruker 

 

Out of curiosity, are you able to please provide a redacted email (just hide the username or any other sensitive info) so I can see the content of the request that you receive?

 

I'm curious to see the roadblocks in the email and perhaps maybe come up with a creative solution depending on what's in it!

 

Cheers

Damien

Highlighted

Hello Again @Damien Rosario,

 

It look like the attached. I've tried to exract information from the subject to "Get User" function but it didn't work unfortunately. Your support is appreciated! 

 

Best Regards,


Yigit

Highlighted

Hello Again @Damien Rosario,

 

It look like the attached. I've tried to exract information from the subject to "Get User" function but it didn't work unfortunately. Your support is appreciated! 

 

Best Regards,


Yigit

Highlighted
Best Response confirmed by Yigit_Yuruker (Contributor)
Solution

Hi @Yigit_Yuruker 

 

Thanks for the info. These images appear to already be approved to access the Site Pages but I think I get the gist of what you are saying.

 

Have you thought about going down a different road and use Microsoft Forms to source the initial request?

 

Example:

 

Step 1: Fill in some fields in the Microsoft Form

e.g. Might be a drop down list of folder names within the site that people may need to access. The user will select the appropriate file. It may even only be this one field.

 

Step 2: User submits the form.

 

Step 3: Microsoft Flow picks up the form submission and sources the users manager

(a) Use 'When a new response is submitted' as the trigger.

(b) Use 'Get response details' to retrieve the forms info.

(c) Use 'Get manager (V2)' using the responders email address (found in step b). This should bring up their managers details.

(d) You can extract the managers email address to use for the approvals process (use something like 'Start and wait for an approval (V2)'.

(e) Manager reviews the approval and hits approve/reject.

(f) Use a Condition to then say If:

- Approve, then sends you an email to say so with the appropriate user details, manager details, etc to action.

- Reject then send a message to the requester saying that their access has been denied by their manager (I assume that you don't want to be bothered to know if someone has been denied).

 

Check out below, I've mocked up the first part of the process that I've just described.

 

capture20190524092117563.png

 

You could embed the form into a SharePoint page that users can access when they need to make their request and/or just send them the link to the form.

 

This might be a better way to go given the challenges with the SharePoint no-reply emails?

 

Cheers and best wishes

Damien