microsoftgraph / microsoftgraph/msgraph-beta-sdk-java

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

オープン
#951 コメント 5 件 リアクション 1 件 担当者 2 名 GitHub で見る

@Chris-AdamsonQHR がすでに取り組んでいます。

2024年5月29日 から。

Needs: attention :wave:
主要言語
Java
スター
32
フォーク
14
平均マージ
1日 3時間
マージ済み PR(30日)
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:
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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。