cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
oscarIzon
Frequent Visitor

How to add new user to group using "Add user to Group"??

Okay, so Im currently in the process of implementing an employee onboarding flow. Its set up to create a user in Azure in AD and then add the user to the relevant security group for licensing purposes. I am struggling to find where I can call in the "Group ID" from. For example if they are apart of the Sales team I want the group Id to automatically populate with the sales group ID.  Can anyone help me progress?

 

oscarIzon_0-1600405569169.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
shu
Microsoft
Microsoft

@oscarIzon  I think you can add some conditions if employee department contains which field then add to the fixed Group ID.

For example, you can get all the Group ID of all the departments. And then in the condition, add if employee' department contains which department name, then add the user to the specific Group.

 

Best Regards,

 

Jessie Chen

 

Support Engineer

Asia Dynamics 365 Support

Customer Services and Support

View solution in original post

2 REPLIES 2
efialttes
Super User III
Super User III

Hi!

If you have an admin user that is member of all target groups, you can try with 'get groups of a user (v2)' and filter them acording to whatever policy you define to automatically match a user's dept and its corresponding group

https://docs.microsoft.com/en-us/connectors/azuread/#get-groups-of-a-user-(v2)

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



shu
Microsoft
Microsoft

@oscarIzon  I think you can add some conditions if employee department contains which field then add to the fixed Group ID.

For example, you can get all the Group ID of all the departments. And then in the condition, add if employee' department contains which department name, then add the user to the specific Group.

 

Best Regards,

 

Jessie Chen

 

Support Engineer

Asia Dynamics 365 Support

Customer Services and Support

View solution in original post

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (74,759)