Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions microsoft-identity-and-access/1.0.0/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def disable_user(self, tenant_id, client_id, client_secret, user_email_or_id):
return {"success": False, "reason": "Couldn't find any password methods to reset password, but DID revoke their sessions (2)"}

registered_password_id = retdata["value"][0]["id"]
graph_url = f"https://graph.microsoft.com/v1.0/users/{user_email_or_id}/authentication/passwordMethods/{registered_password_id}/resetPassword"
graph_url = f"https://graph.microsoft.com/v1.0/users/{user_email_or_id}/authentication/methods/{registered_password_id}/resetPassword"
headers = {
"Content-type": "application/json"
}
Expand Down Expand Up @@ -480,7 +480,7 @@ def reset_user_password(self, tenant_id, client_id, client_secret, user_email_or
graph_url = "https://graph.microsoft.com"
session = self.authenticate(tenant_id, client_id, client_secret, graph_url)

graph_url = f"https://graph.microsoft.com/beta/users/{user_email_or_id}/authentication/passwordMethods/{registered_password_id}/resetPassword"
graph_url = f"https://graph.microsoft.com/beta/users/{user_email_or_id}/authentication/methods/{registered_password_id}/resetPassword"

headers = {
"Content-type": "application/json"
Expand Down