尝试创建一个处理密码重置的工具(用户忘记了密码)。我们已将权限应用于用于password resets per the documentation的AAD应用。
获取错误:
"code": "Authorization_RequestDenied",
"message": "Insufficient privileges to complete the operation."
答案 0 :(得分:2)
您无法使用应用程序权限范围重置用户密码(即范围用于client_credentials
授权)。根据{{3}}:
更新
passwordProfile
属性时,需要以下权限:Directory.AccessAsUser.All
。
documentation仅作为委派权限范围提供。