users()
Returns all user accounts known to the server.
With extended_info=True, additional fields are populated for each user.
1. Signature
-
Sync
-
Async
ecm.security.users(*, extended_info: bool = False) -> list[ECMUser]
await ecm.security.users(*, extended_info: bool = False) -> list[ECMUser]
2. Parameters
| Parameter | Default | Description |
|---|---|---|
|
|
When |
3. Return value
List of ECMUser instances, one per user account.
3.1. ECMUser fields
| Field | Type | Description |
|---|---|---|
|
|
Numeric user ID. |
|
|
Short internal user name. |
|
|
Login credential name used for authentication. |
|
|
Full display name. |
|
|
E-mail address. |
|
|
Globally unique identifier of the user account. |
|
|
Profile ID: |
|
|
|
|
|
Optional remark from the user configuration. Only populated with |
|
|
Account valid-from date. Only populated with |
|
|
Account valid-to date. Only populated with |
|
|
Names of groups the user belongs to. Only populated with |
4. Examples
4.1. List all users
-
Sync
-
Async
users = ecm.security.users()
for user in users:
print(user.username, user.display_name, user.email)
if user.locked:
print(f" → locked")
users = await ecm.security.users()
for user in users:
print(user.username, user.display_name, user.email)
5. See also
-
user() — Detailed attributes of a single user
-
user_groups() — Groups of a specific user