microsoftgraph / microsoftgraph/msgraph-beta-sdk-java

Calling User.setProxyAddresses() results in "Insufficient privileges to complete the operation" even with elevated permissions

Open
#951 5 comments 1 reaction 2 assignees View on GitHub

@Chris-AdamsonQHR is already working on this.

Since May 29, 2024.

Needs: attention :wave:
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:
image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.