create_user
(**kwargs)¶Creates a new user within the specified identity store.
See also: AWS API Documentation
Request Syntax
response = client.create_user(
IdentityStoreId='string',
UserName='string',
Name={
'Formatted': 'string',
'FamilyName': 'string',
'GivenName': 'string',
'MiddleName': 'string',
'HonorificPrefix': 'string',
'HonorificSuffix': 'string'
},
DisplayName='string',
NickName='string',
ProfileUrl='string',
Emails=[
{
'Value': 'string',
'Type': 'string',
'Primary': True|False
},
],
Addresses=[
{
'StreetAddress': 'string',
'Locality': 'string',
'Region': 'string',
'PostalCode': 'string',
'Country': 'string',
'Formatted': 'string',
'Type': 'string',
'Primary': True|False
},
],
PhoneNumbers=[
{
'Value': 'string',
'Type': 'string',
'Primary': True|False
},
],
UserType='string',
Title='string',
PreferredLanguage='string',
Locale='string',
Timezone='string'
)
[REQUIRED]
The globally unique identifier for the identity store.
An object containing the user's name.
A string containing a formatted version of the name for display.
The family name of the user.
The given name of the user.
The middle name of the user.
The honorific prefix of the user. For example, "Dr."
The honorific suffix of the user. For example, "M.D."
A list of Email
objects containing email addresses associated with the user.
The email address associated with the user.
A string containing an email address. For example, "johndoe@amazon.com."
A string representing the type of address. For example, "Work."
A Boolean value representing whether this is the primary email address for the associated resource.
A list of Address
objects containing addresses associated with the user.
The address associated with the specified user.
The street of the address.
A string of the address locality.
The region of the address.
The postal code of the address.
The country of the address.
A string containing a formatted version of the address for display.
A string representing the type of address. For example, "Home."
A Boolean value representing whether this is the primary address for the associated resource.
A list of PhoneNumber
objects containing phone numbers associated with the user.
The phone number associated with the user.
A string containing a phone number. For example, "8675309" or "+1 (800) 123-4567".
A string representing the type of a phone number. For example, "Mobile."
A Boolean value representing whether this is the primary phone number for the associated resource.
dict
Response Syntax
{
'UserId': 'string',
'IdentityStoreId': 'string'
}
Response Structure
(dict) --
UserId (string) --
The identifier of the newly created user in the identity store.
IdentityStoreId (string) --
The globally unique identifier for the identity store.
Exceptions
IdentityStore.Client.exceptions.ResourceNotFoundException
IdentityStore.Client.exceptions.ThrottlingException
IdentityStore.Client.exceptions.AccessDeniedException
IdentityStore.Client.exceptions.ConflictException
IdentityStore.Client.exceptions.InternalServerException
IdentityStore.Client.exceptions.ValidationException
IdentityStore.Client.exceptions.ServiceQuotaExceededException