web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Access Denied for some...
Power Automate
Answered

Access Denied for some Users in Sharepoint HTTP API

(0) ShareShare
ReportReport
Posted on by 44

We use the Sharepoint HTTP API to query users and groups via Flow. I know that the users need read-permissions on the site to query users and groups.

 

There are 2 Flows that are called from a canvas app:

 

1 loads the User from Sharepoint and then the groups of that user with these 2 URLS

 _api/web/siteusers?$filter=EMAIL

_api/web/getuserbyid(USERID)/Groups

 

This flow runs successfully for all users. So apparently they have the correct permissions to access the users and groups, in general.

 

a 2nd Flow then loads other data including all SP-Groups and then for each of those groups all users with these 2 URLs

_api/web/sitegroups

_api/Web/SiteGroups/GetById(GROUPID)/Users

 

For my DEV-  and TEST-Users and also for many others this flow works as well, so I don't think that there is anything wrong with the configuration.

 

But for some Users the last call fails. So loading the sitegroups is successfull, only loading the users of a group fails. 

 

The error is 403 with this text:

Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
clientRequestId: f5723cba-2bd0-4465-a7b5-95489ae75d11
serviceRequestId: 3ccccea0-1050-7000-0f5e-1640cd23c341

 

I can't explain this. Can anybody help?

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,397 Most Valuable Professional on at

    Check the configuration of the SharePoint groups.  When you create an SP Group the default setting is that only group members can see the membership.  That can be changed to everyone.  I suspect the groups that are failing are groups that are set to group membership and the users involved aren't members.

    image.png

  • philippschaefer Profile Picture
    44 on at

    That was exactly it! Thanks for the quick help. Who needs language models.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 957

#2
Valantis Profile Picture

Valantis 847

#3
Haque Profile Picture

Haque 609

Last 30 days Overall leaderboard