Showing results for 
Search instead for 
Did you mean: 
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?

Super User III
Super User III

Hi @rarroyo1 


I have tried this and see my results below.




This is my run results:



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



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 blog

Power Automate Video Tutorials
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

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.


Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (12,010)