microsoftgraph / microsoftgraph/msgraph-beta-sdk-java
Calling User.setProxyAddresses() results in "Insufficient privileges to complete the operation" even with elevated permissions
@Chris-AdamsonQHR is already working on this.
Since May 29, 2024.
- Dominant language
- Java
- Stars
- 32
- Forks
- 14
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 6
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.