Home

Teams guest invitation process

%3CLINGO-SUB%20id%3D%22lingo-sub-789642%22%20slang%3D%22en-US%22%3ETeams%20guest%20invitation%20process%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-789642%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20working%20on%20creating%20a%20Teams%20app%20for%20inviting%20external%20guests%20to%20a%20team%20using%20graph%20API.%20As%20part%20of%20the%20process%20I'm%20doing%20the%20following%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20Submit%20a%20form%20for%20adding%20a%20guest%20by%20providing%20a%20guest%20email%20address%3C%2FP%3E%3CP%3E2.%20Send%20an%20Invite%20to%20the%20guest%20using%20create%20invite%20api%20with%20a%20redirect%20url%20of%20teams.microsoft.com%3C%2FP%3E%3CP%3E3.%20Immediately%20add%20the%20guest%20user%20to%20the%20team%3C%2FP%3E%3CP%3E4.%20The%20guest%20gets%20a%20invitation%20url%20in%20their%20email%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOnce%20the%20guest%20clicks%20the%20invitation%20URL%2C%20the%20verification%20process%20is%20completed%20and%20they%20are%20prompted%20to%20create%20a%20new%20microsoft%20account.%20Until%20this%20point%20everything%20works%20fine.%20After%20this%2C%20a%20message%20is%20generated%20asking%20the%20user%20to%20create%20a%20free%20Teams%20account.%20If%20they%20proceed%20further%2C%20they%20land%20up%20in%20their%20own%20new%20organization%20and%20are%20not%20able%20to%20join%20the%20organization%20for%20which%20they%20were%20invited%20for.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20could%20be%20the%20problem%20here%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-789642%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Eteams%20guest%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-789886%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20guest%20invitation%20process%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-789886%22%20slang%3D%22en-US%22%3E%3CP%3EWanted%20to%20give%20a%20more%20deeper%20perspective%20on%20this%20problem%20based%20on%20the%20recent%20behavior%20observed.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20invite%20redemption%20email%20seems%20to%20be%20similar%20between%20the%20ones%20sent%20through%20graph%20api%20and%20through%20the%20Teams%20desktop%20app%20(while%20adding%20the%20guest%20through%20the%20manage%20team-%26gt%3Badd%20member%20dialog).%20However%20the%20behavior%20is%20different%20when%20the%20url%20in%20the%20email%20is%20clicked%20as%20seen%20below%3A%3CBR%20%2F%3E%3CBR%20%2F%3ETeams%20APP%3A%20The%20user%20is%20taken%20through%20the%20following%20process%3A%3CBR%20%2F%3E%3CBR%20%2F%3E-%20Email%20Verification%20(via%20verification%20code)%3CBR%20%2F%3E-%20Microsoft%20account%20creation%20%26amp%3B%20verification%20(via%20verification%20code)%3CBR%20%2F%3E-%20Automatic%20linking%20of%20microsoft%20account%20to%20Teams%20account%3CBR%20%2F%3E%3CBR%20%2F%3EGraph%20API%3A%20Here%20the%20steps%20are%20slightly%20different%3CBR%20%2F%3E%3CBR%20%2F%3E-%20Email%20verification%3CBR%20%2F%3E-%20Microsoft%20Account%20creation%3CBR%20%2F%3E-%20Teams%20account%20creation%20-%20this%20is%20an%20extra%20step%20when%20redeeming%20the%20url%20from%20the%20API.%20Here%20the%20guest%20is%20forced%20to%20create%20a%20new%20Teams%20account%20with%20a%20new%20organization.%20Eventually%20when%20you%20end%20up%20creating%20a%20team%20account%2C%20you%20end%20up%20in%20your%20own%20organization%20than%20the%20one%20you%20were%20invited%20to.%3CBR%20%2F%3E%3CBR%20%2F%3EHas%20anyone%20seen%20this%20behavior%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-793196%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20guest%20invitation%20process%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-793196%22%20slang%3D%22en-US%22%3EGuys%2C%3CBR%20%2F%3E%3CBR%20%2F%3ECan%20someone%20help%20me%20on%20this%20pls%3F%20I'm%20having%20a%20tough%20time%20making%20this%20work.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-793240%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20guest%20invitation%20process%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-793240%22%20slang%3D%22en-US%22%3EIt%20sounds%20like%20the%20user%20is%20clicking%20the%20link%20in%20the%20first%20email%20-%20which%20accepts%20their%20B2B%20guest%20invite%2C%20then%20redirects%20them%20to%20teams.microsoft.com.%3CBR%20%2F%3E%3CBR%20%2F%3ETry%20redirecting%20them%20to%20somewhere%20else%2C%20like%20myapps.microsoft.com%20-%20then%20when%20you%20have%20added%20them%20to%20the%20Team%2C%20they%20get%20the%20welcome%20email%20from%20Teams%20-%20that%20link%20is%20direct%20to%20the%20correct%20Team%20in%20your%20tenant%20(whereas%20the%20other%20redirect%20is%20to%20teams.microsoft.com%20-%20which%20would%20take%20them%20into%20their%20own%20tenant%20if%20they%20have%20365%2C%20or%20to%20the%20'free'%20Teams%20if%20not.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-793316%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20guest%20invitation%20process%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-793316%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F384773%22%20target%3D%22_blank%22%3E%40eynarain%3C%2FA%3E%26nbsp%3B%20As%20a%20Test%2C%20did%20you%20try%20using%20your%20personal%20email%20address%20to%20try%20it%20on%20a%20Home%2FOutside%20PC%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-794450%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20guest%20invitation%20process%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-794450%22%20slang%3D%22en-US%22%3EYes%2C%20I%20did%20but%20the%20results%20are%20the%20same.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-794485%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20guest%20invitation%20process%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-794485%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F506%22%20target%3D%22_blank%22%3E%40Rob%20Ellis%3C%2FA%3E%26nbsp%3BThanks.%20I%20tried%20changing%20the%20redirect%20URL%20to%20myapps.microsoft.com%20but%20now%20it's%20giving%20me%20an%20access%20denied%20error%20just%20before%20opening%20Teams.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-795833%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20guest%20invitation%20process%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-795833%22%20slang%3D%22en-US%22%3Edoes%20your%20guest%20user%20receive%20an%20email%20about%20being%20added%20to%20the%20Team%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-795839%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20guest%20invitation%20process%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-795839%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F506%22%20target%3D%22_blank%22%3E%40Rob%20Ellis%3C%2FA%3EYes%2C%20they%20do.%20The%20problem%20happens%20after%20the%20guest%20clicks%20the%20invitation%20link%20and%20proceeds%20with%20the%20guided%20process.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-795843%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20guest%20invitation%20process%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-795843%22%20slang%3D%22en-US%22%3Eso%20to%20clarify%20-%20the%20user%20gets%202%20emails%3A%3CBR%20%2F%3E%3CBR%20%2F%3E1%20which%20the%20click%20the%20link%20and%20that%20accepts%20and%20then%20redirects%20to%20myapps%3CBR%20%2F%3E%3CBR%20%2F%3E2%20which%20is%20the%20'you've%20been%20added%20to%20Team%20X'%20email%20-%20with%20a%20link%20to%20that%20team.%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20the%20user%20clicks%20the%20link%20in%20the%20first%20email%2C%20but%20does%20not%20click%20the%20link%20in%20the%202nd%20email%20yet%20-%20do%20you%20see%20them%20as%20a%20guest%20user%20in%20portal.azure.com%20%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-797539%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20guest%20invitation%20process%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-797539%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F506%22%20target%3D%22_blank%22%3E%40Rob%20Ellis%3C%2FA%3EThere%20is%20just%20one%20email%20for%20the%20invitation.%20While%20the%20guest%20is%20invited%20and%20is%20visible%20in%20the%20o365%20portal%2C%20it%20takes%20a%20while%20to%20appear%20in%20Teams.%20I%20confirmed%20with%20Microsoft%20that%20this%20is%20the%20default%20behavior%20and%20take%20up%20to%2024hrs%20for%20the%20sync%20to%20happen.%20The%20invitation%20redemption%20process%20is%20just%20not%20smooth.%20Sometime%20we%20get%20reports%20from%20clients%20that%20it's%20going%20in%20an%20endless%20verification%20loop%20and%20in%20some%20cases%202-3%20times%20and%20finally%20lets%20them%20in.%20Finally%2C%20adding%20more%20fuel%20to%20fire%2C%20if%20the%20guest%20is%20already%20signed%20to%20another%20teams%2C%20things%20get%20a%20bit%20complicated.%20In%20any%20case%20for%20now%20we've%20decided%20to%20live%20with%20this.%20Thanks%20for%20your%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E
eynarain
Contributor

I'm working on creating a Teams app for inviting external guests to a team using graph API. As part of the process I'm doing the following:

 

1. Submit a form for adding a guest by providing a guest email address

2. Send an Invite to the guest using create invite api with a redirect url of teams.microsoft.com

3. Immediately add the guest user to the team

4. The guest gets a invitation url in their email

 

Once the guest clicks the invitation URL, the verification process is completed and they are prompted to create a new microsoft account. Until this point everything works fine. After this, a message is generated asking the user to create a free Teams account. If they proceed further, they land up in their own new organization and are not able to join the organization for which they were invited for. 

 

What could be the problem here?

10 Replies
Highlighted

Wanted to give a more deeper perspective on this problem based on the recent behavior observed.

The invite redemption email seems to be similar between the ones sent through graph api and through the Teams desktop app (while adding the guest through the manage team->add member dialog). However the behavior is different when the url in the email is clicked as seen below:

Teams APP: The user is taken through the following process:

- Email Verification (via verification code)
- Microsoft account creation & verification (via verification code)
- Automatic linking of microsoft account to Teams account

Graph API: Here the steps are slightly different

- Email verification
- Microsoft Account creation
- Teams account creation - this is an extra step when redeeming the url from the API. Here the guest is forced to create a new Teams account with a new organization. Eventually when you end up creating a team account, you end up in your own organization than the one you were invited to.

Has anyone seen this behavior?

Guys,

Can someone help me on this pls? I'm having a tough time making this work.
It sounds like the user is clicking the link in the first email - which accepts their B2B guest invite, then redirects them to teams.microsoft.com.

Try redirecting them to somewhere else, like myapps.microsoft.com - then when you have added them to the Team, they get the welcome email from Teams - that link is direct to the correct Team in your tenant (whereas the other redirect is to teams.microsoft.com - which would take them into their own tenant if they have 365, or to the 'free' Teams if not.

@eynarain  As a Test, did you try using your personal email address to try it on a Home/Outside PC?

Yes, I did but the results are the same.

@Rob Ellis Thanks. I tried changing the redirect URL to myapps.microsoft.com but now it's giving me an access denied error just before opening Teams.

does your guest user receive an email about being added to the Team?

@Rob EllisYes, they do. The problem happens after the guest clicks the invitation link and proceeds with the guided process.

so to clarify - the user gets 2 emails:

1 which the click the link and that accepts and then redirects to myapps

2 which is the 'you've been added to Team X' email - with a link to that team.

If the user clicks the link in the first email, but does not click the link in the 2nd email yet - do you see them as a guest user in portal.azure.com ?

@Rob EllisThere is just one email for the invitation. While the guest is invited and is visible in the o365 portal, it takes a while to appear in Teams. I confirmed with Microsoft that this is the default behavior and take up to 24hrs for the sync to happen. The invitation redemption process is just not smooth. Sometime we get reports from clients that it's going in an endless verification loop and in some cases 2-3 times and finally lets them in. Finally, adding more fuel to fire, if the guest is already signed to another teams, things get a bit complicated. In any case for now we've decided to live with this. Thanks for your help.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies