【问题标题】:Insufficient privileges to complete the operation when adding a member to a Microsoft 365 group将成员添加到 Microsoft 365 组时权限不足,无法完成操作
【发布时间】:2021-09-10 18:13:35
【问题描述】:

将成员添加到具有权限类型的 Microsoft 365 组时:委托 - 我正在使用以下错误:

Microsoft.Graph.ServiceException
  HResult=0x80131500
  Message=Code: Authorization_RequestDenied
Message: Insufficient privileges to complete the operation.

根据 Microsoft 的文档 - 所有必需的权限都已添加到 AD 应用程序中:GroupMember.ReadWrite.All, Group.ReadWrite.All, Directory.ReadWrite.All, Directory.AccessAsUser.All

https://docs.microsoft.com/en-us/graph/api/group-post-members?view=graph-rest-1.0&tabs=csharp

我正在使用 Microsoft 提供的相同代码请求:

GraphServiceClient graphClient = new GraphServiceClient( authProvider );

var directoryObject = new DirectoryObject
{
    Id = "{id}"
};

await graphClient.Groups["{group-id}"].Members.References
    .Request()
    .AddAsync(directoryObject);

还缺少哪些权限?

【问题讨论】:

  • @Tarkan Sevilmis:如果您也可以在这里提供帮助。

标签: microsoft-graph-api


【解决方案1】:

缺少的角色是用户管理员角色 - 一旦添加了我的“用户”帐户,我就可以添加/删除用户。

【讨论】:

    猜你喜欢
    • 2017-08-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多