How to Add members via Microsoft Graph to Teams

Alexander Zur 6 Reputation points
2021-05-11T19:23:17.01+00:00

Hey Guys,

i have the problem, that I cannot add Users as "member" to a existing teams via Microsoft Graph. I can add the user as an "owner", but when I try to make the same action as a member, i get a failure:

https://graph.microsoft.com/v1.0/teams/bd774aac-9ff3-41f2-9153-5406e7543e14/members

{
"@odata.type": "#microsoft.graph.aadUserConversationMember",
"roles": ["member"],
"user@odata.bind": "https://graph.microsoft.com/v1.0/users('4766eae6-3619-4d26-a136-60edf1548587')"
}

Is there any possibility to add a user as a normal member?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,113 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,295 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Alexander Zur 6 Reputation points
    2021-05-13T07:38:14.463+00:00

    Hey @Danstan,

    I already figured out my mistake. I created a group with a dynamic membership. Therefore I couldn't add new member by graph or by powershell. Which way you would suggest to manage teams?

    1 person found this answer helpful.

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.