cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pwl2706
New Member

Microsoft Flow - HTTP Get step failing with access denied

In my flow I am trying to use an Access token generated by a Parse JSON task, in the next step I use that to retrieve a list of the members of a Sharepoint group...

 

the step that fails is an HTTP GET calling the URI:

https://tenant.sharepoint.com/_api/web/sitegroups/getbyname('GroupName×​')/users

 

This step is failing with the below error:

{"odata.error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have permission to perform this action or access this resource."}}}

I don't understand why I am getting this error now. What can I do to track down why I don't have access permissions for this?

2 REPLIES 2
v-yamao-msft
Community Support
Community Support

Hi @pwl2706,

 

The error message says that you don’t have permission to access the resource. Could you check the SharePoint logs?

 

Please also check Web Application User Policy to see if there is any policy to deny users or groups in AD groups.

 

 

Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hey, @pwl2706!

 

It appears as though @v-yamao-msft would like some more information in order to further assist you properly with your issue. Please share any additional information that was requested in order to decrease the amount of time that it will take for you to be assisted!

 

Thank you for being an active member of the Flow Community!

-Gabriel
Flow Community Manager

- Gabriel
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager



Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,655)