User details.
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
name |
str | ✔️ | The user's name. | John |
email |
str | ✔️ | A unique email address, which serves as the login name and notification address. | john@example.com |
role |
Optional[models.Role] | ➖ | roles (create) or role_management (update) instead..The legacy role to assign. Deprecated: use roles (create) or role_management (update) instead. Can't be combined with roles or role_management. |
technical_admin |
sub_account_ids |
List[str] | ➖ | A list of product environment IDs that this user can access. Ignored if the role is master_admin.Default: all product environments. |
|
enabled |
Optional[bool] | ➖ | Whether the user is enabled. Default: true. |
true |
roles |
List[models.RoleAssignment] | ➖ | The roles to assign. Can't be sent together with role. |