使用Microsoft Graph API更新PasswordProfile(密码重置)

时间:2018-03-20 11:56:43

标签: microsoft-graph

尝试创建一个处理密码重置的工具(用户忘记了密码)。我们已将权限应用于用于password resets per the documentation的AAD应用。

获取错误:

"code": "Authorization_RequestDenied",
"message": "Insufficient privileges to complete the operation."

是否可以使用Client Credentials Grant flow

1 个答案:

答案 0 :(得分:2)

您无法使用应用程序权限范围重置用户密码(即范围用于client_credentials授权)。根据{{​​3}}:

  

更新passwordProfile属性时,需要以下权限:Directory.AccessAsUser.All

documentation仅作为委派权限范围提供。