WorkMail.Client.create_user(**kwargs)¶Creates a user who can be used in WorkMail by calling the RegisterToWorkMail operation.
See also: AWS API Documentation
Request Syntax
response = client.create_user(
OrganizationId='string',
Name='string',
DisplayName='string',
Password='string'
)
[REQUIRED]
The identifier of the organization for which the user is created.
[REQUIRED]
The name for the new user. WorkMail directory user names have a maximum length of 64. All others have a maximum length of 20.
[REQUIRED]
The display name for the new user.
[REQUIRED]
The password for the new user.
dict
Response Syntax
{
'UserId': 'string'
}
Response Structure
(dict) --
UserId (string) --
The identifier for the new user.
Exceptions
WorkMail.Client.exceptions.DirectoryServiceAuthenticationFailedExceptionWorkMail.Client.exceptions.DirectoryUnavailableExceptionWorkMail.Client.exceptions.InvalidParameterExceptionWorkMail.Client.exceptions.InvalidPasswordExceptionWorkMail.Client.exceptions.NameAvailabilityExceptionWorkMail.Client.exceptions.OrganizationNotFoundExceptionWorkMail.Client.exceptions.OrganizationStateExceptionWorkMail.Client.exceptions.ReservedNameExceptionWorkMail.Client.exceptions.UnsupportedOperationException