Microsoft Graph从组中删除所有者的权限与Microsoft Teams不一致 [英] Microsoft Graph removal of Owners from Group is inconsistent in Microsoft Teams

查看:94
本文介绍了Microsoft Graph从组中删除所有者的权限与Microsoft Teams不一致的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使Microsoft Teams生命周期自动化(创建,添加成员和所有者等),并且我的团队具有一组所有者和成员(所有者也是成员).现在,当我使用删除所有者 Microsoft Graph的端点,我注意到一些不一致之处.

I'm automating Microsoft Teams lifecycle (create, add membmers and owners, etc), and I have Teams with a set of Owners and Members (the Owners are also Members). Now when I use the Remove owners endpoint of the Microsoft Graph, I'm noticing some inconsistencies.

预期的行为:所有者被删除为所有者,但保留为成员身份(在Azure AD中和Microsoft Teams中一样).

Expected behaviour: Owner gets removed as Owner, but stays in place as Member (both in Azure AD as in Microsoft Teams).

观察到的行为

  • v1.0终结点:在Azure AD中,这是预期的.但是,在Microsoft Teams中,用户仍被标记为所有者(在成员列表中)以及相关联的权限.我已经等了几个星期了,只是没有更新.
  • beta终结点:在Azure AD中,这是预期的.但是,在Microsoft Teams中,用户被完全删除.他不再存在于成员资格列表中,并且他无法再访问Microsoft Teams.
  • v1.0 endpoint: In Azure AD, it's as expected. In Microsoft Teams however, the user stays marked as Owner (in the members list) with the associated permissions. I have been waiting for weeks, it just doesn't update.
  • beta endpoint: In Azure AD, it's as expected. In Microsoft Teams however, the user is removed completely. He doesn't exist in the membership list anymore and he cannot access Microsoft Teams anymore.

通过Microsoft Graph API进行的成员资格更改似乎无法正确传播到Microsoft Teams.

It looks like membership changes happening through the Microsoft Graph API don't propagate correctly to Microsoft Teams.

什么是正确的行为?是图还是我的方法有问题?

What is supposed to be the correct behaviour? Is it an issue with the Graph or with my approach?

推荐答案

预期的行为是/beta变体.造成这种不同行为的原因尚不清楚,但这可能是由于Teams API仍处于测试版,而v1.0尚未完全了解Teams(或需要更改的其他属性).

The expected behavior is the /beta variant. This reason for the different behavior isn't clear but it likely stems from the Teams APIs still being in beta and v1.0 not being fully aware of Teams (or the additional attributes it needs to change).

如果您希望将用户从所有者迁移到Memeber,您将打两个电话:

If you are looking to migrate a user from Owner to Memeber, you would make two calls:

  1. 从<使用DELETE /groups/{id}/owners/{id}/$ref
  2. 的所有者列表
  3. user添加到使用POST /groups/{id}/members/$ref
  4. 的成员列表
  1. Remove the user from the Owners list using DELETE /groups/{id}/owners/{id}/$ref
  2. Add the user to the Members list using POST /groups/{id}/members/$ref

这篇关于Microsoft Graph从组中删除所有者的权限与Microsoft Teams不一致的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆