Announcements
I want to remove a user from al Azure Group. Is there a way that I can have a specific group from being removed?
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
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.
Can I use condition to stop a specific group from being removed, but then let all the other groups be removed?
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.
SImilar to this?
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.
Ok I get this error with the new setup
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Mohsin Ali 426
11manish 308 Super User 2026 Season 2
M Bilal Khan 159