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

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Kudoed Authors
Users online (4,731)