SOLVED

How to automatically add a guest to a team in Teams?

%3CLINGO-SUB%20id%3D%22lingo-sub-1243074%22%20slang%3D%22en-US%22%3EHow%20to%20automatically%20add%20a%20guest%20to%20a%20team%20in%20Teams%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1243074%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20I%20can%20add%20a%20guest%20to%20a%20Teams%20team%20using%20this%20procedure%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Fadd-guests-to-a-team-in-teams%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Fadd-guests-to-a-team-in-teams%3C%2FA%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'd%20like%20to%20automate%20this%20procedure%20so%20that%20when%20one%20of%20my%20students%20provides%20consent%20(in%20a%20web%20form%20registration%20page%20or%20email%20link%20trigger)%20that%20they%20are%20automatically%20added%20to%20my%20Teams%20team.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20I%20can't%20see%20a%20'add%20a%20guest%20user%20account%20to%20a%20team%20in%20Teams'%20action%20in%20Power%20Automate%20or%20Zapier.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHas%20anyone%20successfully%20automated%20this%20procedure%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1243074%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGuest%20Access%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1243391%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20automatically%20add%20a%20guest%20to%20a%20team%20in%20Teams%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1243391%22%20slang%3D%22en-US%22%3EFrom%20a%20programmatic%20point%20of%20view%2C%20I'm%20pretty%20sure%20you%20can%20cover%20the%20scenario%20you%20have%20described%20here.%20I%20have%20not%20checked%20what%20Power%20Automate%20actions%20for%20Teams%20are%20available%20Today%2C%20but%20if%20adding%20Guest%20to%20Teams%20are%20not%20among%20then%2C%20you%20could%20do%20it%20by%20means%20for%20instance%20of%20an%20Azure%20Function%20that%20you%20could%20call%20from%20your%20Power%20Automate.%20The%20downside%20here%20are%20the%20licensing%20requirements%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1243626%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20automatically%20add%20a%20guest%20to%20a%20team%20in%20Teams%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1243626%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F60%22%20target%3D%22_blank%22%3E%40Juan%20Carlos%20Gonz%C3%A1lez%20Mart%C3%ADn%3C%2FA%3E.%20Thanks%20for%20the%20tip.%20I've%20been%20exploring%20Power%20Automate%20actions%20and%20while%20there%20is%20an%20action%20to%20create%20a%20user%20in%20Azure%20Active%20Directory%2C%20it%20is%20an%20organisation%20user%20and%20not%20a%20guest%20user.%20There%20doesn't%20seem%20to%20be%20an%20action%20for%20creating%20guest%20users%20in%20AAD%20that%20I%20could%20then%20add%20to%20a%20Teams%20team.%3C%2FP%3E%3CP%3EOf%20course%2C%20creating%20an%20Azure%20Function%20is%20always%20an%20option.%20All%20I%20have%20to%20do%20is%20throw%20out%20Power%20Automate%2C%20forget%20about%20citizen%20development%20and%20hire%20a%20professional%20developer%20instead%20%3A0%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1243636%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20automatically%20add%20a%20guest%20to%20a%20team%20in%20Teams%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1243636%22%20slang%3D%22en-US%22%3EIndeed!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2362814%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20automatically%20add%20a%20guest%20to%20a%20team%20in%20Teams%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2362814%22%20slang%3D%22en-US%22%3EHi%20Neil%3CBR%20%2F%3E%3CBR%20%2F%3EI%20know%20this%20thread%20is%20getting%20old%2C%20but%20I%20came%20upon%20it%20last%20week%20looking%20for%20the%20low-code%20answer%20to%20this%20question.%20Seems%20like%20there%20still%20isn't%20one....but%20then%20it%20dawned%20on%20me....Power%20Automate%20Desktop!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2366752%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20automatically%20add%20a%20guest%20to%20a%20team%20in%20Teams%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2366752%22%20slang%3D%22en-US%22%3EThanks%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F772714%22%20target%3D%22_blank%22%3E%40MattB365%3C%2FA%3E%2C%20but%20Microsoft%20has%20finally%20announced%20webinars%20for%20Teams.%20If%20it%20lives%20up%20to%20the%20hype%2C%20this%20is%20the%20answer%20I've%20been%20waiting%20for%20(rolling%20out%20May%202021).%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2366754%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20automatically%20add%20a%20guest%20to%20a%20team%20in%20Teams%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2366754%22%20slang%3D%22en-US%22%3EAh...OK%2C%20I%20see%20your%20use%20case%20now.%20Great.%20Fingers%20crossed%20that%20it%20solves%20your%20problem%20(and%20lives%20up%20to%20the%20hype!)%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2376691%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20automatically%20add%20a%20guest%20to%20a%20team%20in%20Teams%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2376691%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F772714%22%20target%3D%22_blank%22%3E%40MattB365%3C%2FA%3E%26nbsp%3B%20Webinars%20started%20rolling%20out%20on%20May%2011%2C%202021%26nbsp%3B%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fblog%2F2021%2F05%2F11%2Fintroducing-webinars-in-microsoft-teams-easy-professional-webinars-to-engage-customers%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EIntroducing%20Webinars%20in%20Microsoft%20Teams%3A%20Easy%2C%20professional%20webinars%20to%20engage%20customers%20-%20Microsoft%20365%20Blog%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2641035%22%20slang%3D%22fr-FR%22%3ERe%3A%20How%20to%20automatically%20add%20a%20guest%20to%20a%20team%20in%20Teams%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2641035%22%20slang%3D%22fr-FR%22%3EHi%20Niel%2C%20%3CBR%20%2F%3E%20I%20am%20blocked%20too%20with%20the%20same%20problem.%20I%20created%20manually%20a%20guest%20in%20AZURE%20AD%20but%20can%20not%20gest%20the%20guest%20AAD%20Id%20of%20the%20guest.%20to%20be%20able%20to%20add%20him%20to%20Teams%20team%20I%20managed%20to%20create%20with%20Power%20Automate.%3CBR%20%2F%3EAny%20idea%3F%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20%3CBR%20%2F%3E%20Youcef%20Looks%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2737104%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20automatically%20add%20a%20guest%20to%20a%20team%20in%20Teams%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2737104%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F227911%22%20target%3D%22_blank%22%3E%40Youcef%20Doumandji%3C%2FA%3E%3C%2FP%3E%3CP%3E1.%20I%20use%20the%20Office%20365%20%22search%20for%20users%20(v2)%22%20action%20to%20return%201%20result%20(I%20have%20the%20private%20email%20address%20of%20the%20guest%20user%20(eg.%20hotmail%2Fyahoo%2Foutlook.com)%2C%20but%20there%20are%20various%20filters)%3C%2FP%3E%3CP%3E2.%20AAD%20'get%20user'%20action%20(based%20on%20the%20previous%20hit%2C%20PA%20expands%20it%20to%20a%20for%20each%20because%20technically%20the%20search%20returns%20a%20collection%2Farray%20of%201!)%3C%2FP%3E%3CP%3E3.%20use%20get%20user%20result%20(to%20add%20them%20to%20the%20team.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MarkTaylor_1-1631205525929.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F309357i570BFA13FD1F9084%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22MarkTaylor_1-1631205525929.png%22%20alt%3D%22MarkTaylor_1-1631205525929.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2742050%22%20slang%3D%22fr-FR%22%3ERe%3A%20How%20to%20automatically%20add%20a%20guest%20to%20a%20team%20in%20Teams%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2742050%22%20slang%3D%22fr-FR%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F845865%22%20target%3D%22_blank%22%3E%40MarkTaylor%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMark%3C%2FP%3E%3CP%3EThank%20you%20very%20much%20for%20your%20answer%20but%20I%20think%20I%20did%20not%20explain%20my%20request%20correctely.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20fact%2C%20I%20wish%20to%20create%20automatically%20a%20guest%20user%20in%20Azure%20AD%20from%20a%20change%20in%20a%20custum%20Dataverse%20entity.%20As%20for%20adding%20a%20contact%20as%20a%20guest%20in%20a%20Teams%20team%20I%20managed%20to%20do%20that.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EVery%20best%20looks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYoucef%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2817041%22%20slang%3D%22fr-FR%22%3ERe%3A%20How%20to%20automatically%20add%20a%20guest%20to%20a%20team%20in%20Teams%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2817041%22%20slang%3D%22fr-FR%22%3EHi%20Mark%2C%20%3CBR%20%2F%3E%20After%20reading%20my%20previous%20answer%20to%20your%20message%20I%20realised%20I%20missed%20it%20one%20again.%20In%20fact%20I%20am%20trying%20to%20create%20a%20flow%20that%20would%20fire%20from%20the%20change%20in%20a%20field%20of%20the%20contact%20entity%20and%20what%20I%20need%20to%20automate%20is%20%3A%20%3CBR%20%2F%3E%201%20-%20Create%20the%20contact%20as%20a%20guest%20in%20AAD%20instead%20of%20having%20to%20create%20him%20manualy%20%3CBR%20%2F%3E%202%20-%20Add%20that%20guest%20user%20to%20the%20Teams%20team%20I%20created%20earlier%20with%20another%20flow%20and%20for%20that%20I%20need%20to%20get%20dynamically%20the%20AAD%20ID%20of%20the%20created%20guest.%3CBR%20%2F%3EBest%20looks.%3CBR%20%2F%3EYoucef%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello, I can add a guest to a Teams team using this procedure: https://support.office.com/en-us/article/add-guests-to-a-team-in-teams.

 

I'd like to automate this procedure so that when one of my students provides consent (in a web form registration page or email link trigger) that they are automatically added to my Teams team.

 

But I can't see a 'add a guest user account to a team in Teams' action in Power Automate or Zapier.

 

Has anyone successfully automated this procedure?

11 Replies
From a programmatic point of view, I'm pretty sure you can cover the scenario you have described here. I have not checked what Power Automate actions for Teams are available Today, but if adding Guest to Teams are not among then, you could do it by means for instance of an Azure Function that you could call from your Power Automate. The downside here are the licensing requirements

@Juan Carlos González Martín. Thanks for the tip. I've been exploring Power Automate actions and while there is an action to create a user in Azure Active Directory, it is an organisation user and not a guest user. There doesn't seem to be an action for creating guest users in AAD that I could then add to a Teams team.

Of course, creating an Azure Function is always an option. All I have to do is throw out Power Automate, forget about citizen development and hire a professional developer instead :0

Hi Neil

I know this thread is getting old, but I came upon it last week looking for the low-code answer to this question. Seems like there still isn't one....but then it dawned on me....Power Automate Desktop!
best response confirmed by ThereseSolimeno (Microsoft)
Solution
Thanks @MattB365, but Microsoft has finally announced webinars for Teams. If it lives up to the hype, this is the answer I've been waiting for (rolling out May 2021).
Ah...OK, I see your use case now. Great. Fingers crossed that it solves your problem (and lives up to the hype!)
Hi Niel,
I am blocked too with the same problem. I created manually a guest in AZURE AD but can not gest the guest AAD Id of the guest. to be able to add him to Teams team I managed to create with Power Automate.
Any idea ?

Best regards
Youcef

@Youcef Doumandji

1. I use the Office 365 "search for users (v2)" action to return 1 result (I have the private email address of the guest user (eg. hotmail/yahoo/outlook.com), but there are various filters)

2. AAD 'get user' action (based on the previous hit, PA expands it to a for each because technically the search returns a collection/array of 1!)

3. use get user result (to add them to the team.

MarkTaylor_1-1631205525929.png

 

 

@MarkTaylor 

Mark,

Thank you very much for your answer but  I think I did not explain my request correctely.

 

In fact, I wish to create automatically a guest user in Azure AD from a change in a custum Dataverse entity. As for adding a contact as a guest in a Teams team I managed to do that.

 

Very best regards.

 

Youcef

Hi Mark,
After reading my previous answer to your message I realised I missed it one again. In fact I am trying to create a flow that would fire from the change in a field of the contact entity and what I need to automate is :
1 - Create the contact as a guest in AAD instead of having to create him manualy
2 - Add that guest user to the Teams team I created earlier with another flow and for that I need to get dynamically the AAD ID of the created guest.
Best regards.
Youcef
www.000webhost.com