msgraph-sdk-go icon indicating copy to clipboard operation
msgraph-sdk-go copied to clipboard

I write tool for migration Teams to Teams in same Tenant or New Tennant on Golang.

Open dogonovm opened this issue 2 years ago • 0 comments
trafficstars

I write tool for migration Teams to Teams in same Tenant or New Tennant on Golang.

But no example how to create private Channel in migration mode.

Here my log:

Create Teams with migration mode without owner as visibility private: Endpoint url: "https://graph.microsoft.com/v1.0/teams"

{ "@microsoft.graph.teamCreationMode":"migration", "createdDateTime":"2015-03-14T11:22:17.043Z", "description":"Some describtion", "discoverySettings":{ "showInTeamsSearchAndSuggestions":true }, "displayName":"MigrationTestSvetek-07", "funSettings":{ "allowCustomMemes":true, "allowGiphy":true, "allowStickersAndMemes":true, "giphyContentRating":"Moderate" }, "guestSettings":{ "allowCreateUpdateChannels":false, "allowDeleteChannels":false }, "memberSettings":{ "allowAddRemoveApps":true, "allowCreateUpdateChannels":true, "allowCreateUpdateRemoveConnectors":true, "allowCreateUpdateRemoveTabs":true, "allowDeleteChannels":true }, "messagingSettings":{ "allowChannelMentions":true, "allowOwnerDeleteMessages":true, "allowTeamMentions":true, "allowUserDeleteMessages":true, "allowUserEditMessages":true }, "visibility":"Private" } Responce Team Create:

&{202 b1fb2f29-10ed-49f7-948b-57b50a357a40 b1fb2f29-10ed-49f7-948b-57b50a357a40 /teams('8db461d8-8b86-4b6e-8122-5ef47acba421') / teams('8db461d8-8b86-4b6e-8122-5ef47acba421')/operations('00000000-0000-0000-0000-000000000000')}

Create Channel with migration mode as membershipType private Endpoint url: https://graph.microsoft.com/v1.0/teams/19:[email protected]/channels

{ "@microsoft.graph.channelCreationMode":"migration", "createdDateTime":"2023-10-06T06:25:14.203Z", "description":"", "displayName":"SharedTest", "members":[ { "@odata.type":"#microsoft.graph.aadUserConversationMember", "roles":[ "owner" ], "[email protected]":"https://graph.microsoft.com/v1.0/users('5a0c4a45-007f-4d84-b620-4719d91006f1')" } ], "membershipType":"private" }

Responce Channel Create: Response code: 201 CannelID: 19:[email protected]

But channel is created as Standart.

How I can make migration Private to Private Channels?

Thank you!

dogonovm avatar Oct 07 '23 20:10 dogonovm