Added a guest to my team using the API, But the guest didn't receive invite mail.

Bush Gao 0 Reputation points
2024-01-12T05:55:32.3666667+00:00

The program I'm writing uses the Teams's team add a guest API. When I call this API, the return is successful. However, the guest did not receive the e-mail. I deleted the person, rejoined and still haven't received the email, besides, I also checked in the Junk Email folder or Other folder, I didn't find it either. So, I added it manually on top of Team, and was able to receive the email. It seems that just by calling the API to automatically add guests, the guests are not able to receive emails. Is this normal, and if not, how do I fix it?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,049 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 45,186 Reputation points
    2024-01-12T08:04:34.02+00:00

    Hi @Bush Gao

    When inviting guests, you need to specify the sendInvitationMessage property as true, it defaults to false. User's image

    User's image

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.