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

Occasional Contributor

Hello, I can add a guest to a Teams team using this procedure:


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)
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 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/, 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.






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.



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.