Skip to content
Merged
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
6 changes: 6 additions & 0 deletions workos/user_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ def update_user(
self,
*,
user_id: str,
email: Optional[str] = None,
first_name: Optional[str] = None,
last_name: Optional[str] = None,
email_verified: Optional[bool] = None,
Expand All @@ -222,6 +223,7 @@ def update_user(
user_id (str): The User unique identifier
first_name (str): The user's first name. (Optional)
last_name (str): The user's last name. (Optional)
email (str): The user's email. (Optional)
email_verified (bool): Whether the user's email address was previously verified. (Optional)
password (str): The password to set for the user. (Optional)
password_hash (str): The hashed password to set for the user, used when migrating from another user store. Mutually exclusive with password. (Optional)
Expand Down Expand Up @@ -949,6 +951,7 @@ def update_user(
user_id: str,
first_name: Optional[str] = None,
last_name: Optional[str] = None,
email: Optional[str] = None,
email_verified: Optional[bool] = None,
password: Optional[str] = None,
password_hash: Optional[str] = None,
Expand All @@ -959,6 +962,7 @@ def update_user(
json = {
"first_name": first_name,
"last_name": last_name,
"email": email,
"email_verified": email_verified,
"password": password,
"password_hash": password_hash,
Expand Down Expand Up @@ -1574,6 +1578,7 @@ async def update_user(
user_id: str,
first_name: Optional[str] = None,
last_name: Optional[str] = None,
email: Optional[str] = None,
email_verified: Optional[bool] = None,
password: Optional[str] = None,
password_hash: Optional[str] = None,
Expand All @@ -1584,6 +1589,7 @@ async def update_user(
json = {
"first_name": first_name,
"last_name": last_name,
"email": email,
"email_verified": email_verified,
"password": password,
"password_hash": password_hash,
Expand Down