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 / Remove Azure Group fro...
Power Automate
Unanswered

Remove Azure Group from Users

(0) ShareShare
ReportReport
Posted on by 46

I want to remove a user from al Azure Group. Is there a way that I can have a specific group from being removed?

Categories:
  • Expiscornovus Profile Picture
    33,997 Most Valuable Professional on at

    Hi @M7r229,

     

    There should be a remove member from group action in the Azure AD connector. You should be able to use that.

     

    Below is an example

     

    groupid_memberid.PNG

  • M7r229 Profile Picture
    46 on at

    Sorry, should had been more clear. I know how to remove members from an Azure through a template and also do it manually within Power Automate. Is there a way when it goes through all of the groups to "Prevent" as specific group from being removed or being added? For example in in the screenshot below "942873d5-2cb6-423c-9cb7-42391c742fe0", I dont want this group to get added if removing groups from a users.

    M7r229_0-1666451198620.png

     

  • M7r229 Profile Picture
    46 on at

     

    Can I use condition to stop a specific group from being removed, but then let all the other groups be removed?

     

    Screenshot 2022-11-03 084640.png

  • Expiscornovus Profile Picture
    33,997 Most Valuable Professional on at

    Hi @M7r229,

     

    Yes, that should be possible. But instead of the Body field with a contains in the condition I would use the current item of the loop. Add this as an expression:

    item()

     

    And use the is not equal to operator

     

    That should exclude that one group id.

  • M7r229 Profile Picture
    46 on at

    SImilar to this?

     

    Screenshot 2022-11-03 091535.png

  • Expiscornovus Profile Picture
    33,997 Most Valuable Professional on at

    Hi @M7r229,

     

    Yes, that would be the setup I was suggesting.

    Of course, add the group id of the group you want to exclude from removal in the Choose a value field directly after the is not equal to.

  • M7r229 Profile Picture
    46 on at

    M7r229_1-1667498377659.pngM7r229_2-1667498436478.png

     

     

    Ok I get this error with the new setup

    M7r229_0-1667498311026.png

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 159

Last 30 days Overall leaderboard