cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HelgeNorvang
Advocate III
Advocate III

Fetch current item's permission groups

Hi,

I am creating a document approval flow with a few customizations based off of my client's requirements.

Now, in order to start a approval action - I need to fetch the permission groups for the document being processed. I have a bunch of Groups that have been assigned permissions in a document library - each folder in the library basically has a corresponding security group (unique permissions).

 

But, for now, I just need to figure out how to get these groups.

 

Does anybody know how to?


Thanks for any help 🙂

2 REPLIES 2
ScottShearer
Super User
Super User

@HelgeNorvang-

Retrieving the permissions on a list item is not natively support ing Flow - there is no action that will do what you want.  However, you should be able to find the permissions on a list item by using the SharePoint REST API in your Flow.

 

Here are some links that should help you get there:

Serge Luca Blog on using Flow to set SharePoint permissions

User, Groups and Roles API reference

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Thanks for your reply.

 

So, I believe I have managed to find a REST call that gives me the response body I need:
/_api/web/lists/getbytitle('TheDocuments)/items(0)?$expand=RoleAssignments/Member/Users

 

Now I have to parse this response body - probably using the Parse JSON action. I'm stuck here. I don't know what the Schema for the Parse JSON action should be.

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (1,608)