Forum Discussion
Teams guest invitation process
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
- eynarainBrass Contributor
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?- eynarainBrass ContributorYes, I did but the results are the same.
- eynarainBrass ContributorGuys,
Can someone help me on this pls? I'm having a tough time making this work.- Rob EllisBronze ContributorIt 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.