Jul 06 2018
12:09 PM
- last edited on
Feb 06 2023
03:45 AM
by
TechCommunityAP
Jul 06 2018
12:09 PM
- last edited on
Feb 06 2023
03:45 AM
by
TechCommunityAP
We created a list/form for managers to do evalulations of staff. We also used Flow to create an approve process. Once the employee fills the form out, an approval gets sent to their manager, if the manager approves it goes the the VP of HR, and if the VP of HR approves it goes to the CEO.
Permissions are set up so staff can view their own items, and VP of HR and CEO are owners so they can see everything.
The problem I have is when the approval goes to the manager, they can't see the form (because of the view own items permission). Not a problem with VP and CEO obviously. Is there a way for a manager to inherit permissions to view what was created by their staff member but now have access to everything via the Owner setting?
Thank you
Jul 06 2018 12:37 PM
Whilst I'm not a massive fan of list item permissions, you could use the SharePoint REST API to assign permissions to the list item. Depending on how you get the manager, you could either get the manager claims information from the list (if you're capturing that as a piece of metadata) or you could call Get Manager (v2) from the Office 365 Users connector. Once you've got the manager information you could make a REST call to SharePoint to assign the permission. I did something similar in SPD workflows a while ago, so the same thing could apply here.
If you can let me know where you get the manager info from, then I'll provide a fully worked example.
Jul 09 2018 08:49 AM
Hi Matt,
Thanks for your reply, any info you have or links would be great. The manager is assigned on the account in AD and sync'ed to office 365.
Thanks!
Jul 09 2018 01:05 PM
Hi Blain
There is a plugin called Plumsail SP - Change SharePoint permissions which will do the job in a single step, but you'll need to put your hand in your pocket to buy the credits.
My preferred method, because I like doing it myself, is by following this blog: https://noellawlor.wordpress.com/2018/01/18/setting-sharepoint-item-list-permissions-with-flow/
The only difference that you should be aware of to make it match your scenario is that you can get the manager UPN by using the Office 365 Users - Get Manager (V2) action. I'm going to write up the example of giving your manager access as a blog and then I'll share that too.
This is quite similar to what I've previously done with SPD. I'm working through this example as well, but let me know how you get on with it.
Jul 20 2018 07:08 AM
Hi @Blain Harrison, did you ever manage to implement this? I've blogged exactly how I did, so if you need a step by step guide, hopefully this should help.