update_user()
Updates an existing user account. Fields not passed are read from the server first and rewritten unchanged so they are preserved.
1. Signature
-
Sync
-
Async
ecm.security.update_user(
user_guid: str,
*,
username: str | None = None,
login_name: str | None = None,
display_name: str | None = None,
email: str | None = None,
remark: str | None = None,
password: str | None = None,
profile_id: int | None = None,
locked: bool | None = None,
supervisor: bool | None = None,
account_type: int | None = None,
flags: int | None = None,
lang_id: int | None = None,
server_id: int | None = None,
valid_from: datetime | None = None,
valid_to: datetime | None = None,
change_pwd: bool | None = None,
never_expire: bool | None = None,
) -> ECMUserAttributes
await ecm.security.update_user(...) -> ECMUserAttributes
2. Parameters
| Parameter | Default | Description |
|---|---|---|
|
— |
GUID of the user to update. |
all others |
|
If not |
|
|
Plaintext password. Auto-encoded via |
4. Errors
-
ECMNotFoundException— whenuser_guiddoes not match any user. -
ECMException(or subclass) on other server failures.
5. Examples
6. See also
-
create_user() — Create account
-
delete_user() — Delete account
-
user() — Read detailed attributes