gpt4 book ai didi

Azure AD Graph API 调用出现 "Insufficient privileges to complete the operation"异常

转载 作者:行者123 更新时间:2023-12-03 00:31:37 47 4
gpt4 key购买 nike

我们正在尝试调用 Azure AD 图形 API 来获取用户信息。为此,我们已按照 https://github.com/OfficeDev/O365-ASPNETMVC-Start 中提到的步骤进行操作。 。但是当我们调用https://graph.windows.net/microsoft.onMicrosoft.com/users/?api-version=1.0时URL 并查看 fiddler 响应,我们得到如下异常: HTTP/1.1 403 禁止 内容类型:application/json;odata=minimalmetadata

{
"odata.error":
{
"code":"Authorization_RequestDenied","message":
{
"lang":"en","value":"Insufficient privileges to complete the operation."
}
}
}

我们尝试按照Insufficient privileges to complete the operation when using service principal to create Azure AD Application中提到的步骤进行操作但收到消息表明 appid 没有执行更改的管理员权限。请帮忙。

最佳答案

如此图所示,在您注册的机器人应用程序中更改权限以获取权限。

Image Link

并检查 URL 中的“范围”参数。

关于Azure AD Graph API 调用出现 "Insufficient privileges to complete the operation"异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37960456/

47 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com