Forum Discussion
BoHyun
Nov 23, 2020Brass Contributor
Microsoft Graph Api - Create team Visibility : HiddenMembership error
Hi. I've been create a team using this code in c#, using Microsoft Graph Api. var additionalData = new Dictionary<string, object>() {
{
"template@odata.bind",
"https://g...
LeandroJJ
Nov 25, 2020Copper Contributor
Hi. BoHyun
Try with the v1.0 and make the request in the following way:
{
"template@odata.bind":"https://graph.microsoft.com/v1.0/teamsTemplates('educationClass')",
"displayName":"My Sample Team",
"description":"My Sample Team’s Description",
"members":[
{
"@odata.type":"#microsoft.graph.aadUserConversationMember",
"roles":[ "owner" ],
"user@odata.bind":"https://graph.microsoft.com/v1.0/users('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx')"
}
]
}