microsoftgraph / microsoftgraph/msgraph-beta-sdk-java
Calling User.setProxyAddresses() results in "Insufficient privileges to complete the operation" even with elevated permissions
@Chris-AdamsonQHR 已经在做这个了。
开始于 2024年5月29日。
- 主要语言
- Java
- 星标
- 32
- 派生
- 14
- 平均合并
- 1 天 3 小时
- 30 天内合并 PR
- 6
描述
Expected behavior
Making a call to User.setProxyAddresses() succeeds when "User.ReadWrite.All" and "Directory.ReadWrite.All" application permissions are granted in the Azure portal with admin consent given.
Actual behavior
An exception is thrown:
com.microsoft.graph.beta.models.odataerrors.ODataError: Insufficient privileges to complete the operation.
Steps to reproduce the behavior
Using version 6.9.0 of the beta SDK:
- Create a new user (post)
- Attempt to update user (patch) with a call to setProxyAddresses() made first
- Observe the error
Here are the permission settings we tried using in the Azure Portal:
We also set the application in Azure to both User Administrator and then Global Administrator without succcess.
Related
Patch request to do the same operation is the suggested operation via graph explorer:
https://stackoverflow.com/questions/65198916/remove-old-proxyaddress-entry-for-user-in-azure-active-directory/71577425#71577425
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
评估
这个 Issue 还没有评估数据。