Adding an anonymous user (External User) to teams group chat using API

Mohammed Sarfaraz 0 Reputation points
2024-11-02T20:30:02.2633333+00:00

Hi,

I am looking to create a group chat with an external user's email and an internal user. Could anyone guide me on how this can be achieved?

Should I create a member first with the type anonymousGuestConversationMember and then add it to the team's group chat? or do i need to create a user?

Thanks in advance

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,369 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 6,965 Reputation points Microsoft Vendor
    2024-11-04T02:59:47.04+00:00

    Hello Mohammed Sarfaraz,

    Thank you for reaching out to Microsoft Support!

    First, you need to invite the user as a guest in Azure AD, and then Add the guest to your group chat through the Add member endpoint.

    User's image

    Screenshot 2024-11-04 025729

    Hope this helps.

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

    0 comments No comments

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.