【发布时间】:2020-07-06 03:51:29
【问题描述】:
我正在尝试通过 Postman 运行“更改密码”。
我使用应用程序 ID 和密码获取令牌
我可以从用户配置文件中读取数据没问题
我在 Azure 门户中授予 Graph API 权限
我再次生成令牌,在 jwt.io 中查看,示例
"Device.ReadWrite.All",
"Member.Read.Hidden",
"Directory.ReadWrite.All",
"Domain.ReadWrite.All",
"Application.ReadWrite.OwnedBy",
"Application.ReadWrite.All"
],
我发送
"password": "Test123456",
"forceChangePasswordNextLogin": false
到https://graph.windows.net/[tenant]/users/[user]api-version=1.6。
我仍然遇到以下问题:
"code": "Authorization_RequestDenied",
"message": {
"lang": "en",
"value": "Insufficient privileges to complete the operation."
}
【问题讨论】:
-
令牌中
aud的值是多少? -
@juunas - 00000002-0000-0000-c000-000000000000
-
嗯,这很奇怪。通常应该是
https://graph.windows.net。获取令牌时尝试将其用作resource。 -
不知道该放在哪里 - 这是我在邮递员中的 URL 目前的样子 login.microsoftonline.com/[tenantid]/oauth2/token
标签: azure-ad-b2c azure-ad-graph-api