Skip to content

UpdateUserRequest

Source code in docs_src/capo_workmail/types/update_user_request.py
class UpdateUserRequest(TypedDict, closed=True):
    organization_id: "capo_workmail.types.organization_id.OrganizationId"
    """<p>The identifier for the organization under which the user exists.</p>"""
    user_id: "capo_workmail.types.entity_identifier.EntityIdentifier"
    """<p>The identifier for the user to be updated.</p> <p>The identifier can be the <i>UserId</i>, <i>Username</i>, or <i>email</i>. The following identity formats are available:</p> <ul> <li> <p>User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234</p> </li> <li> <p>Email address: [email protected]</p> </li> <li> <p>User name: user</p> </li> </ul>"""
    role: NotRequired["capo_workmail.types.user_role.UserRole"]
    """<p>Updates the user role.</p> <p>You cannot pass <i>SYSTEM_USER</i> or <i>RESOURCE</i>.</p>"""
    display_name: NotRequired["capo_workmail.types.user_attribute.UserAttribute"]
    """<p>Updates the display name of the user.</p>"""
    first_name: NotRequired["capo_workmail.types.user_attribute.UserAttribute"]
    """<p>Updates the user's first name.</p>"""
    last_name: NotRequired["capo_workmail.types.user_attribute.UserAttribute"]
    """<p>Updates the user's last name.</p>"""
    hidden_from_global_address_list: NotRequired[
        "capo_workmail.types.boolean_object.BooleanObject"
    ]
    """<p>If enabled, the user is hidden from the global address list.</p>"""
    initials: NotRequired["capo_workmail.types.user_attribute.UserAttribute"]
    """<p>Updates the user's initials.</p>"""
    telephone: NotRequired["capo_workmail.types.user_attribute.UserAttribute"]
    """<p>Updates the user's contact details.</p>"""
    street: NotRequired["capo_workmail.types.user_attribute.UserAttribute"]
    """<p>Updates the user's street address.</p>"""
    job_title: NotRequired["capo_workmail.types.user_attribute.UserAttribute"]
    """<p>Updates the user's job title.</p>"""
    city: NotRequired["capo_workmail.types.user_attribute.UserAttribute"]
    """<p>Updates the user's city.</p>"""
    company: NotRequired["capo_workmail.types.user_attribute.UserAttribute"]
    """<p>Updates the user's company.</p>"""
    zip_code: NotRequired["capo_workmail.types.user_attribute.UserAttribute"]
    """<p>Updates the user's zip code.</p>"""
    department: NotRequired["capo_workmail.types.user_attribute.UserAttribute"]
    """<p>Updates the user's department.</p>"""
    country: NotRequired["capo_workmail.types.user_attribute.UserAttribute"]
    """<p>Updates the user's country.</p>"""
    office: NotRequired["capo_workmail.types.user_attribute.UserAttribute"]
    """<p>Updates the user's office.</p>"""
    identity_provider_user_id: NotRequired[
        "capo_workmail.types.identity_provider_user_id_for_update.IdentityProviderUserIdForUpdate"
    ]
    """<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>"""

city instance-attribute

city: NotRequired[UserAttribute]

Updates the user's city.

company instance-attribute

company: NotRequired[UserAttribute]

Updates the user's company.

country instance-attribute

country: NotRequired[UserAttribute]

Updates the user's country.

department instance-attribute

department: NotRequired[UserAttribute]

Updates the user's department.

display_name instance-attribute

display_name: NotRequired[UserAttribute]

Updates the display name of the user.

first_name instance-attribute

first_name: NotRequired[UserAttribute]

Updates the user's first name.

hidden_from_global_address_list instance-attribute

hidden_from_global_address_list: NotRequired[BooleanObject]

If enabled, the user is hidden from the global address list.

identity_provider_user_id instance-attribute

identity_provider_user_id: NotRequired[IdentityProviderUserIdForUpdate]

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.

initials instance-attribute

initials: NotRequired[UserAttribute]

Updates the user's initials.

job_title instance-attribute

job_title: NotRequired[UserAttribute]

Updates the user's job title.

last_name instance-attribute

last_name: NotRequired[UserAttribute]

Updates the user's last name.

office instance-attribute

office: NotRequired[UserAttribute]

Updates the user's office.

organization_id instance-attribute

organization_id: OrganizationId

The identifier for the organization under which the user exists.

role instance-attribute

role: NotRequired[UserRole]

Updates the user role.

You cannot pass SYSTEM_USER or RESOURCE.

street instance-attribute

street: NotRequired[UserAttribute]

Updates the user's street address.

telephone instance-attribute

telephone: NotRequired[UserAttribute]

Updates the user's contact details.

user_id instance-attribute

The identifier for the user to be updated.

The identifier can be the UserId, Username, or email. The following identity formats are available:

  • User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

  • Email address: [email protected]

  • User name: user

zip_code instance-attribute

zip_code: NotRequired[UserAttribute]

Updates the user's zip code.