0

When we see from Teams UI while we create new Teams, we can choose the option of public and private.

Can I Create Teams as a Private team using Graph API? If so, can anyone help me to find the related document?

Karen
  • 73
  • 7

2 Answers2

0

@Karen You cannot set the visibility directly on the team. Instead, you could set visibility of the group to Private and create the team upon that group.

Gousia Begum
  • 2,076
  • 1
  • 5
  • 9
  • If we have Teams using create-team PowerShell, is this teams will be a public by default? – Karen Oct 21 '19 at 23:43
  • $group = New-Team -MailNickname "TestTeam" -displayname "Test Teams" -Visibility "private" https://learn.microsoft.com/en-us/powershell/module/teams/new-team?view=teams-ps This visibility option seems available? – Karen Oct 22 '19 at 01:20
0

Here, for the API: "v1.0/groups/{ID}" -Body '{"visibility": "Private"}' -Method PATCH