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 / Can't remove user from...
Power Automate
Answered

Can't remove user from group

(0) ShareShare
ReportReport
Posted on by 66

Hi,

I'm using powerapps to trigger a flow to add and remove users from certain azure security groups.

 

I'm able to add users to the group, but can't remove them, because the user running th powerapp are not the owner of the group.

 

The connection in my flow is running as the tenant admin, and if I'm running the powerapp with my admin account it works.

But when i run the app with a normal user, I get the following error trying to remove a user:

 

{
  "error": {
    "code""Authorization_RequestDenied",
    "message""Insufficient privileges to complete the operation.",
    "innerError": {
      "date""2021-05-28T09:11:16",
      "request-id""a97f1008-05e1-40e3-a9d5-318fd56bf2ea",
      "client-request-id""a97f1008-05e1-40e3-a9d5-318fd56bf2ea"
    }
  }
}
 
I thought that the flow was running as the user in the connection regardless of which user are running the app?
 
Categories:
I have the same question (0)
  • JCD-JTP Profile Picture
    66 on at

    I can now see that I can only add users to groups I'm already in...

    And it's not possible to add another group to owner of the security group.

  • Verified answer
    JCD-JTP Profile Picture
    66 on at

    Ended up creating af flow using HTTP connecter to call Graph API, insted of using custom connector.

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
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard