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 / Sharepoint error - Acc...
Power Automate
Answered

Sharepoint error - Access Denied

(0) ShareShare
ReportReport
Posted on by 89

Hello I'm trying to create a flow and the idea as that every time someone enter specific information in a sharepoint list this allows the option add users in specific groups in sharepoint (Image Below). However everytime that is executed get the next error: 

 

Access denied. You do not have permission to perform this action or access this resource.
clientRequestId: 195fa1a2-8769-4213-b29f-43c20d1ab1e2
serviceRequestId: 8efcc49f-105f-b000-fc46-6b4f11ad1c8b

 

crirojsab_0-1620236217605.png

The user that execute and add data in the list is an admin of the sharepoint site and also the owner of the job.

 

Any idea of why this job is failing? 

 

Thanks and regards

 

 

Categories:
I have the same question (0)
  • Verified answer
    jinivthakkar Profile Picture
    4,187 on at

    @crirojsab I just tried this and it worked fine for me, give it a try

    jinivthakkar_0-1620402341742.png

     

    jinivthakkar_1-1620402394919.png

    22 is groupId as highlighted in image 2 and passed in image 1 uri - _api/web/sitegroups(22)/users

     

    accept - application/json;odata.metadata=none

    content-type - application/json

     

    Body - {'LoginName':'i:0#.f|membership|YourEmailIDHERE'}

     

    Reference - https://emadgabriel.com/2019/01/04/microsoft-flow-add-user-to-sharepoint-group/

    --------------------------------------------------------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

  • Verified answer
    jinivthakkar Profile Picture
    4,187 on at

    @crirojsab you might be hitting a wrong end point hence you are getting the access denied error.

  • crirojsab Profile Picture
    89 on at

    Hi @jinivthakkar you have right as just did what you suggest expecting a different result but was the same; and if works for you should be the same here. Now I'm completely sure that something happened. Now I'm going to contact my IT department. 

    Regards!. 

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard