简体   繁体   English

MS Teams创建的收藏夹组不能设置为收藏夹

[英]Favorite group that was created by MS Teams cannot be set as favorite

I'm trying to add and remove favorites of groups. 我正在尝试添加和删除组的收藏夹。 Therefore MS Graph provides the groups/{groupId}/addFavorite Endpoint to set a group as favorite. 因此,MS Graph提供了groups/{groupId}/addFavorite端点以将组设置为收藏。 When I create a group eg by Outlook to favorite this group is possible. 当我创建一个组(例如,通过Outlook来收藏)时,可能会出现此组。 When I create a group over MS Teams the endpoint returns me an OK but the groups is not set as favorite. 当我在MS Teams上创建组时,端点会向我返回确定,但这些组未设置为收藏。 Why does it not work? 为什么不起作用?

I figured out that in via MS Teams created groups, the outlook and calendar icon is hidden. 我发现通过MS Teams创建的组中,Outlook和日历图标是隐藏的。 However, it is possible go to outlook for this group by enter the link by hand in the browser. 但是,可以通过在浏览器中手动输入链接来访问此组的Outlook。 There it is not possible to set the group as favorite over the setting too [See below image Group created via MS Teams ]. 也无法通过设置将组设置为收藏夹[请参见下图通过MS Teams创建的组 ]。

For a group created by Outlook it is possible to favorite it [See below image Group created via Outlook ]. 对于由Outlook创建的组,可以将其收藏夹[请参见下图通过Outlook创建的组 ]。

Group created via Outlook 通过Outlook创建的组

通过Outlook创建的组

Group created via MS Teams 通过MS团队创建的小组

通过团队创建组

This behavior is the same as in the MS graph endpoint. 此行为与MS图形端点中的行为相同。 So when I try to set a via teams created group as favorite via groups/{groupId}/addFavorite the endpoint return ok but nothing happens. 因此,当我尝试将通过创建的组创建的组设置为通过groups/{groupId}/addFavorite的收藏夹groups/{groupId}/addFavorite ,端点返回ok,但什么也没有发生。 I expect, that it should not matter, where I create the group to use the favorite endpoint. 我希望这并不重要,我在哪里创建了使用收藏夹端点的组。

I found out that when you create a group via MS Teams the UnifiedGroup property HiddenFromExchangeClientsEnabled is true . 我发现,当您通过MS Teams创建组时,UnifiedGroup属性HiddenFromExchangeClientsEnabledtrue So Outlook and Calendar is not shown and it is not possible to get the isFavorite property. 因此,不会显示Outlook和日历,并且无法获取isFavorite属性。 Now I set the HiddenFromExchangeClientsEnabled property to false and now it is possible to set it as favorite. 现在,我将HiddenFromExchangeClientsEnabled属性设置为false,现在可以将其设置为收藏。 :-) :-)

Use set-UnifiedGroup -identity "TEAMNAME" -HiddenFromExchangeClientsEnabled:$false -Verbose to set the property. 使用set-UnifiedGroup -identity "TEAMNAME" -HiddenFromExchangeClientsEnabled:$false -Verbose设置属性。

The next challenge will be to set this property on creation for each new group via ms team. 下一个挑战将是通过ms团队为每个新组在创建时设置此属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM