diff --git a/microsoft-security-oauth2/1.0.0/src/app.py b/microsoft-security-oauth2/1.0.0/src/app.py index 77d425d2..f6f968d7 100644 --- a/microsoft-security-oauth2/1.0.0/src/app.py +++ b/microsoft-security-oauth2/1.0.0/src/app.py @@ -36,7 +36,7 @@ def reset_password(self, access_token, refresh_token, userId, passwordId, newPas graph_url = "https://graph.microsoft.com" session = self.authenticate(access_token, refresh_token) - url = "https://graph.microsoft.com/beta/users/%s/authentication/passwordMethods/%s/resetPassword" % (userId, passwordId) + url = "https://graph.microsoft.com/beta/users/%s/authentication/methods/%s/resetPassword" % (userId, passwordId) response = session.post(url) print(response.status_code) return response.text