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

Notifications

Announcements

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)
  • 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.

  • 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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 245 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 207 Most Valuable Professional

#3
trice602 Profile Picture

trice602 190 Super User 2025 Season 2

Last 30 days Overall leaderboard