cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rarroyo1
Helper I
Helper I

How to get SharePoint item level permissions in Flow if I have the URL using SharePoint Rest API

I'm using Send HTTP Request to Sharepoint. 

Method: Get. 

Uri: /_api/Web/GetFileByServerRelativeUrl('relative link to document')?$expand=ListItemAllFields/RoleAssignments/Member/Users 

 

Using the $expand returns JSON has null values and flow throws error.  Is there a way to get item level permissions without using $expand?

2 REPLIES 2
abm
Super User III
Super User III

Hi @rarroyo1 

 

I have tried this and see my results below.

 

image.png

 

This is my run results:

image.png

 

Please check your URL is correct. Also post a screenshot of your flow and error details.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials
rarroyo1
Helper I
Helper I

I figured it out myself.  The JSON that is returned as 3 Title fields.  So after Parse JSON, add Compose action and use the 2nd Title field from the list

{
"Title": (use the 2nd Title listed from Parse JSON output) 
}

This will automatically add the compose to a do for each action.

Inside the do for each action, after compose, append the compose output to an array variable.

After the do for each loop, add a Create HTML.  Select the array variable and that's it!

 

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (94,939)