cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mhorn30
Advocate I
Advocate I

Create a Flow to add members to Teams site based on data in a table

I want to create a Flow to add members to a Teams site based on data in a table (i.e. the member's email address and the Team ID (amongst other data) will be in a table, as not every member is added to the same Teams site)

 

The Teams site will be created manually before the Flow is activated for the first time to add the members.

 

mhorn30_0-1601465759223.png


Where do I find the "Team ID" that I need to add in the Flow? (Clicking on "Get link to team" inside my team provides me with a long URL that contains a "groupId", will it be this?)

 

And I assume the "user AAD ID" is the email address of the user? (All users are inside the tenant, i.e. no guests).

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
mhorn30
Advocate I
Advocate I

So to answer my own question:

 

1. The Team ID is the "groupId". You can find this by clicking on the ellipse next to your Teams site and choosing "Get link to team". Copy the id (numbers) after "groupId=" and  before "&tenantId="

mhorn30_0-1601481288825.png

 

2. The "user AAD ID" is the email address of the user associated with the tenant (i.e. xxxx@company.com)

 

View solution in original post

4 REPLIES 4
mhorn30
Advocate I
Advocate I

So to answer my own question:

 

1. The Team ID is the "groupId". You can find this by clicking on the ellipse next to your Teams site and choosing "Get link to team". Copy the id (numbers) after "groupId=" and  before "&tenantId="

mhorn30_0-1601481288825.png

 

2. The "user AAD ID" is the email address of the user associated with the tenant (i.e. xxxx@company.com)

 

View solution in original post

anubhav247
Frequent Visitor

For all future visitors it might help....

 

I tried writing just the email id for "user AAD ID" which gave me error "user does not exist".

 

So here is what i did insteadimage.png

johnnyshield
Advocate II
Advocate II

I had to use a different method to solve the issue of "user not found". Teams AAD ID emails only seems to like lowercase emails, so I converted them with expression toLower(email). I don't know if the "Get User Profile" step is still needed.

johnnyshield_0-1625006051293.png

 

HWib
Helper II
Helper II

It seems like you have to use the Get User Profile as @anubhav247  mentioned.

The user AAD has to match with what's in AAD.

So if in AAD it's lower case, it will have to be in lower case.

if in AAD it's upper case, it will have to be in upper case.

Get user profile, Mail will pull up whatever is registered. I tried the lower case expresssion and gets an error. But working when I use the get user profile Mail. 

Hope this helps for those who gets similar error.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

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

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,225)