Skip to content

CreateUserRequest

Source code in docs_src/capo_workmail/types/create_user_request.py
class CreateUserRequest(TypedDict, closed=True):
    organization_id: "capo_workmail.types.organization_id.OrganizationId"
    """<p>The identifier of the organization for which the user is created.</p>"""
    name: "capo_workmail.types.user_name.UserName"
    """<p>The name for the new user. WorkMail directory user names have a maximum length of 64. All others have a maximum length of 20.</p>"""
    display_name: "capo_workmail.types.user_attribute.UserAttribute"
    """<p>The display name for the new user.</p>"""
    password: NotRequired["capo_workmail.types.password.Password"]
    """<p>The password for the new user.</p>"""
    role: NotRequired["capo_workmail.types.user_role.UserRole"]
    """<p>The role of the new user.</p> <p>You cannot pass <i>SYSTEM_USER</i> or <i>RESOURCE</i> role in a single request. When a user role is not selected, the default role of <i>USER</i> is selected.</p>"""
    first_name: NotRequired["capo_workmail.types.user_attribute.UserAttribute"]
    """<p>The first name of the new user.</p>"""
    last_name: NotRequired["capo_workmail.types.user_attribute.UserAttribute"]
    """<p>The last name of the new user. </p>"""
    hidden_from_global_address_list: "capo_workmail.types.boolean.Boolean"
    """<p>If this parameter is enabled, the user will be hidden from the address book.</p>"""
    identity_provider_user_id: NotRequired[
        "capo_workmail.types.identity_provider_user_id.IdentityProviderUserId"
    ]
    """<p>User ID from the IAM Identity Center. If this parameter is empty it will be updated automatically when the user logs in for the first time to the mailbox associated with WorkMail.</p>"""

display_name instance-attribute

display_name: UserAttribute

The display name for the new user.

first_name instance-attribute

first_name: NotRequired[UserAttribute]

The first name of the new user.

hidden_from_global_address_list instance-attribute

hidden_from_global_address_list: Boolean

If this parameter is enabled, the user will be hidden from the address book.

identity_provider_user_id instance-attribute

identity_provider_user_id: NotRequired[IdentityProviderUserId]

User ID from the IAM Identity Center. If this parameter is empty it will be updated automatically when the user logs in for the first time to the mailbox associated with WorkMail.

last_name instance-attribute

last_name: NotRequired[UserAttribute]

The last name of the new user.

name instance-attribute

name: UserName

The name for the new user. WorkMail directory user names have a maximum length of 64. All others have a maximum length of 20.

organization_id instance-attribute

organization_id: OrganizationId

The identifier of the organization for which the user is created.

password instance-attribute

password: NotRequired[Password]

The password for the new user.

role instance-attribute

role: NotRequired[UserRole]

The role of the new user.

You cannot pass SYSTEM_USER or RESOURCE role in a single request. When a user role is not selected, the default role of USER is selected.