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 / Automatically add newl...
Power Automate
Unanswered

Automatically add newly created user to required groups

(0) ShareShare
ReportReport
Posted on by 2

Hi. I'm testing out Power Automate to see if we can streamline and simplify user creation for our bigger 365 tenants.

I've managed to set up a Flow that creates a new user based on a Sharepoint list. But I cannot figure out how to add the new user to all the required distribution/security groups. The item on my list allows for the selection of the actual groups (not just simply listed as a string).

Is there any way to automate this? Any action I can find requires the groups' ID.

Thanks for all the help and input in advance!

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @MarkG44 :

    I'm not sure of I understand your needs , if there are any mistakes please tell me:

    • You create a new user in the tenant by creating a new record in the SharePoint List.( Through flow)
    • When creating this new record, you will also specify a group.
    • You want this new user to be automatically added to this group.
    • I assume that Group is a text column. When you specify a Group, you only need to fill in the name of the Group.

    If so , The key is to get the Group ID through Group Name. Currently, Power Automate does not have any action to directly obtain the Group Id through the Group Name. The only way is to obtain the Group list first, and then find the corresponding Group Id through the Group Name.

    I’ve made a test for your reference:

    My data source:

    Column (click to edit)

    Type

    Title

    Single line of text

    Display Name

    Single line of text

    Mail Nickname

    Single line of text

    Password

    Single line of text

    User Principal Name

    Single line of text

    GroupName

    Single line of text

     

    v-bofeng-msft_0-1606101950647.png

     

    My flow:

    v-bofeng-msft_1-1606101950652.jpeg

     

    There is currently no good way to get all the Groups in the organization, so I use "User Team" to list the Teams I belong to. If you need to get all the Groups in the organization, you need to use MS Graph to create a custom connector.

    Here is the result:

     

    v-bofeng-msft_2-1606101950655.jpeg

     

    Best Regards,

    Bof

  • MarkG44 Profile Picture
    2 on at

    Hi. You've understood my very poor description correctly! But what if the column containing the required Group or Groups is not just simply text/string, but "Person or Group"? Would it still require these weird, hacky workarounds?
    I'm really surprised there is no easy, built in way to do this. 

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @MarkG44 :

    I took this into consideration when I did the test yesterday. But the value of Group in "Person or Group" does not include GroupId and its displayname is somewhat different from the actual group name (the format is "GroupName Members"). So using the "Person or Group" column will not reduce the workload but will increase the difficulty (need to clear "Members" in displayname).

    Best Regards,

    Bof

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

Haque 286

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard