MS Graph API 中的 app-auth 在 msgraph-training-java 中不起作用。

huangapple go评论50阅读模式
英文:

app-auth in MS Graph Api does not work in msgraph-training-java

问题

我想学习用于 Java 的 MS Graph API,并正在编译和运行 MS Graph 培训 Java 中的 app-auth 示例。

显示访问令牌正常运行,但显示用户列表失败。

自述文件中说,在配置应用程序权限时,我应该选择 "为...授予管理员同意",但没有这个选项。我仍然收到错误消息:

"错误消息:权限不足以完成操作。"

但我已经在 MS Graph 的邮件部分和用户部分授予了所有权限。

英文:

I want to learn MS Graph Api for Java and I'm compiling and running the app-auth example in msgraph training java.

Displaying the access token works fine but displaying the user list fails.

The readme says, when configuring the application permisions I should select "Grant admin consent for..." but there is no such an option. I still get an error:

"Error message: Insufficient privileges to complete the operation."

but I have granted all permissions in the Mail Section and User Section of MS Graph

答案1

得分: 0

在授予权限后,某些权限需要在Azure门户中获得管理员同意,如下所示的屏幕截图:

MS Graph API 中的 app-auth 在 msgraph-training-java 中不起作用。

您需要向管理员请求授予权限。

英文:

After granting the permission , some permissions need to be granted admin consent in the azure portal as seen in the screenshot below:

MS Graph API 中的 app-auth 在 msgraph-training-java 中不起作用。

You need to ask the administrator for granting the permissions.

huangapple
  • 本文由 发表于 2023年2月16日 18:38:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/75471040.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定