Chime / Client / create_user
create_userΒΆ
- Chime.Client.create_user(**kwargs)ΒΆ
Creates a user under the specified Amazon Chime account.
See also: AWS API Documentation
Request Syntax
response = client.create_user( AccountId='string', Username='string', Email='string', UserType='PrivateUser'|'SharedDevice' )
- Parameters:
AccountId (string) β
[REQUIRED]
The Amazon Chime account ID.
Username (string) β The user name.
Email (string) β The userβs email address.
UserType (string) β The user type.
- Return type:
dict
- Returns:
Response Syntax
{ 'User': { 'UserId': 'string', 'AccountId': 'string', 'PrimaryEmail': 'string', 'PrimaryProvisionedNumber': 'string', 'DisplayName': 'string', 'LicenseType': 'Basic'|'Plus'|'Pro'|'ProTrial', 'UserType': 'PrivateUser'|'SharedDevice', 'UserRegistrationStatus': 'Unregistered'|'Registered'|'Suspended', 'UserInvitationStatus': 'Pending'|'Accepted'|'Failed', 'RegisteredOn': datetime(2015, 1, 1), 'InvitedOn': datetime(2015, 1, 1), 'AlexaForBusinessMetadata': { 'IsAlexaForBusinessEnabled': True|False, 'AlexaForBusinessRoomArn': 'string' }, 'PersonalPIN': 'string' } }
Response Structure
(dict) β
User (dict) β
The user on the Amazon Chime account.
UserId (string) β
The user ID.
AccountId (string) β
The Amazon Chime account ID.
PrimaryEmail (string) β
The primary email address of the user.
PrimaryProvisionedNumber (string) β
The primary phone number associated with the user.
DisplayName (string) β
The display name of the user.
LicenseType (string) β
The license type for the user.
UserType (string) β
The user type.
UserRegistrationStatus (string) β
The user registration status.
UserInvitationStatus (string) β
The user invite status.
RegisteredOn (datetime) β
Date and time when the user is registered, in ISO 8601 format.
InvitedOn (datetime) β
Date and time when the user is invited to the Amazon Chime account, in ISO 8601 format.
AlexaForBusinessMetadata (dict) β
The Alexa for Business metadata.
IsAlexaForBusinessEnabled (boolean) β
Starts or stops Alexa for Business.
AlexaForBusinessRoomArn (string) β
The ARN of the room resource.
PersonalPIN (string) β
The userβs personal meeting PIN.
Exceptions
Chime.Client.exceptions.UnauthorizedClientExceptionChime.Client.exceptions.NotFoundExceptionChime.Client.exceptions.ConflictExceptionChime.Client.exceptions.ForbiddenExceptionChime.Client.exceptions.BadRequestExceptionChime.Client.exceptions.ThrottledClientExceptionChime.Client.exceptions.ServiceUnavailableExceptionChime.Client.exceptions.ServiceFailureException