Azure python request to change password policies

ayberk.halac 0 Reputation points


How can I access this request from graph api or azure sdk -> /api/PasswordReset/PasswordResetPolicies?getPasswordResetEnabledGroup=false

I want to change password reset policies from my code but I couldnt find any choices except requesting directly to api.

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,620 questions
Microsoft Graph SDK
Microsoft Graph SDK
A Microsoft software developer kit designed to simplify building high-quality, efficient, and resilient applications that access Microsoft Graph.
879 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. 2023-03-09T09:10:36.1966667+00:00

    Hi @ayberk.halac,

    Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account.

    POST /users/{id | userPrincipalName}/authentication/passwordMethods/{id}/resetPassword

    There is no mention of code or snipper for Python :


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments