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.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,130)