Reputation: 553
I have problem, when I create MS team and channels using the MS Graph API, the channels are always hidden and users have to manually click show.
This is the request code to create MS team and two channels:
$data = [
'displayName' => 'Test MS Team',
"[email protected]" => "https://graph.microsoft.com/v1.0/teamsTemplates('standard')",
'description' => 'Created using MS Graph API v1',
'channels' => [
[
'displayName' => 'Test channel 1',
'isFavoriteByDefault' => true,
'description' => 'Test channel 1 descriptions'
],
[
'displayName' => 'Test channel 2',
'isFavoriteByDefault' => true,
'description' => 'Test channel 2 descriptions'
]
],
// Adding more than one member is currently not supported on MS graph
'members' => [
[
'@odata.type' => '#microsoft.graph.aadUserConversationMember',
'roles' => ['owner'],
'[email protected]' => "https://graph.microsoft.com/v1.0/users('{$this->me()->getId()}')"
],
]
];
$this->request('POST', '/teams', $data, [], true);
And this is the results:
Channels are hidden
Upvotes: 0
Views: 591
Reputation: 58
This feature is controlled by
attribute on the channel, looks like this feature is currently not working and MS has created a bug for it please have a look over here
Upvotes: 1