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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add users to groups ba...
Power Automate
Unanswered

Add users to groups based on a master group membership

(1) ShareShare
ReportReport
Posted on by 13
Hello everyone,
 
Im all brand new on Power Automate, but I would like to learn. Hope some one here have time to get me started. Not sure where the best sources are, but I have tried for some time to make my first flow to work.
 
So here is what I would like to do. I have alot of dynamic groups of users for our company, I would like to use power automate to add users directly into other groups is the user is not present in the target group. 
 
Here is an example:

DYNAMIC_GROUP1 - Main group
 
Power automate to check members in this group and compare it to users in:

MANUAL_GROUP1 - Power Automate maintained group.
 
-If user exists in that group, do nothing
- If user is not member add the user
- Any user added in the last run should also be reported to service[at]domain.com via email
 
Thanks in advance for any replies
Categories:
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    12,908 Super User 2025 Season 2 on at
    Add users to groups based on a master group membership
    I would change your approach and do this:
    1. Create a manually triggered flow to get all of the members of DYNAMIC_GROUP1 and add them to the MANUAL_GROUP1. In other words, get the two groups in sync.
    2. Then create a flow with the trigger, when a group member is added or removed.
    3. When someone is added, the reason value will be null. When someone is removed, the reason will be deleted.
    4. Add a condition to your flow to check if the reason is not equal to deleted.
    5. Then on the yes side of the condition, add
      1. Get user profile based on the User id from the trigger
      2. Add the person to the 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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard