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 還沒有評估資料。