Updates data for the user¶
Description¶
Updates data for the user. To have the latest information, it must be preceded by a describe_user call. The dataset in the request should be the one expected when performing another describe_user call.
Usage¶
workmail_update_user(OrganizationId, UserId, Role, DisplayName,
FirstName, LastName, HiddenFromGlobalAddressList, Initials, Telephone,
Street, JobTitle, City, Company, ZipCode, Department, Country, Office,
IdentityProviderUserId)
Arguments¶
-
OrganizationId[required] The identifier for the organization under which the user exists.
-
UserId[required] 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: user@domain.tld
- User name: user
-
RoleUpdates the user role.
You cannot pass SYSTEM_USER or RESOURCE.
-
DisplayNameUpdates the display name of the user.
-
FirstNameUpdates the user's first name.
-
LastNameUpdates the user's last name.
-
HiddenFromGlobalAddressListIf enabled, the user is hidden from the global address list.
-
InitialsUpdates the user's initials.
-
TelephoneUpdates the user's contact details.
-
StreetUpdates the user's street address.
-
JobTitleUpdates the user's job title.
-
CityUpdates the user's city.
-
CompanyUpdates the user's company.
-
ZipCodeUpdates the user's zip code.
-
DepartmentUpdates the user's department.
-
CountryUpdates the user's country.
-
OfficeUpdates the user's office.
-
IdentityProviderUserIdUser 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.
Value¶
An empty list.
Request syntax¶
svc$update_user(
OrganizationId = "string",
UserId = "string",
Role = "USER"|"RESOURCE"|"SYSTEM_USER"|"REMOTE_USER",
DisplayName = "string",
FirstName = "string",
LastName = "string",
HiddenFromGlobalAddressList = TRUE|FALSE,
Initials = "string",
Telephone = "string",
Street = "string",
JobTitle = "string",
City = "string",
Company = "string",
ZipCode = "string",
Department = "string",
Country = "string",
Office = "string",
IdentityProviderUserId = "string"
)