cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Charline74
Helper III
Helper III

Add member to a security group via Power Automate

Hello, 

 

Is it possible to add members to a security group with Power Automate ?

 

Thanks, 

 

Charline

1 ACCEPTED SOLUTION

Accepted Solutions
Shujaath_Khan
Solution Sage
Solution Sage

7 REPLIES 7
Shujaath_Khan
Solution Sage
Solution Sage

Hi @Charline74 

You should be able to add 

Office365Groups.AddMemberToGroup(GroupDropdown.Selected.id, UserDropdown.Selected.UserPrincipalName)

For more you can check solution detail below

https://powerusers.microsoft.com/t5/Building-Power-Apps/Can-I-add-members-to-Security-mail-enabled-g...

Hope it helps

Charline74
Helper III
Helper III

Hi @Shujaath_Khan

 

But this is for Power Apps and not for Power Automate ? 

Hi @Charline74 

here is a snap for your ref. to try out.

reg. office365groups Connector:  https://docs.microsoft.com/en-us/connectors/office365groups/#add-member-to-group

shujaathkhan_1-1653993641810.png

 

 

@Shujaath_Khan

 

Your solution it's for O635 group not for security group ?

Shujaath_Khan
Solution Sage
Solution Sage

hi @Charline74 , Ok for Azure AD group here you go

ref: https://docs.microsoft.com/en-us/connectors/azuread/#add-user-to-group

 

shujaathkhan_0-1653996509587.png

 

Hope it helps

Thanks

@Shujaath_Khan

 

How I found the ID group of my security group ?

Shujaath_Khan
Solution Sage
Solution Sage

Hi @Charline74 

To get a group ID

  1. goto: https://aad.portal.azure.com
  2. Click on Azure AD (1) > Groups (2) > search your Group (3) > Get Object ID (4). Hope the snap helps
  3. If you're not having AD Access, AzureAD Admin shall help you with ID

shujaathkhan_1-1654000704085.png

 


If this post helps, then please consider 
Accepting it as the solution to help the other members find it.

 

Thanks

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (4,307)