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

Add new user accounts (Azure Active Directory) to Office 365 group based on domain in UPN

Hello,

 

For employee onboarding, I would like to create a flow that will add Azure AD accounts that have certain domains in their UPN to a specific Office 365 account.  The flow should run on a schedule, perhaps 2 to 4 times a day, and check Azure AD for users accounts that meet the criteria and then add them to the group.

 

I found the Add Member to Group connector but I'm not sure how to configure the User Principle Name field in the connector.

 

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @thomas_praxis,

 

The User Principal Name field of Add member to group only support UPN, it is a string of 32-digits code, you could get them by using Get user action of Azure AD connector:

Annotation 2020-08-06 101413.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3

Hi @thomas_praxis 

 

You can pass the user email address for the UPN. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Hi @yashag2255 , thank you for your response. 

 

I've added a screen print of the Add member to group connector I am trying to use.  Sorry I can't get the picture embed to work.

 

By default it requires UPN.  Are you suggesting I pull the email address through the Expression somehow?

 

 

Hi @thomas_praxis,

 

The User Principal Name field of Add member to group only support UPN, it is a string of 32-digits code, you could get them by using Get user action of Azure AD connector:

Annotation 2020-08-06 101413.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,526)