Forum Discussion

Blain Harrison's avatar
Blain Harrison
Copper Contributor
Jul 06, 2018

Allowing managers access to list items

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

  • Matt Weston's avatar
    Matt Weston
    Brass Contributor

    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.

Resources