:doc:`AppStream <../../appstream>` / Client / create_user

***********
create_user
***********



.. py:method:: AppStream.Client.create_user(**kwargs)

  

  Creates a new user in the user pool.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateUser>`_  


  **Request Syntax**
  ::

    response = client.create_user(
        UserName='string',
        MessageAction='SUPPRESS'|'RESEND',
        FirstName='string',
        LastName='string',
        AuthenticationType='API'|'SAML'|'USERPOOL'|'AWS_AD'
    )
    
  :type UserName: string
  :param UserName: **[REQUIRED]** 

    The email address of the user.

     

    .. note::

      

      Users' email addresses are case-sensitive. During login, if they specify an email address that doesn't use the same capitalization as the email address specified when their user pool account was created, a "user does not exist" error message displays.

      

    

  
  :type MessageAction: string
  :param MessageAction: 

    The action to take for the welcome email that is sent to a user after the user is created in the user pool. If you specify SUPPRESS, no email is sent. If you specify RESEND, do not specify the first name or last name of the user. If the value is null, the email is sent.

     

    .. note::

      

      The temporary password in the welcome email is valid for only 7 days. If users don’t set their passwords within 7 days, you must send them a new welcome email.

      

    

  
  :type FirstName: string
  :param FirstName: 

    The first name, or given name, of the user.

    

  
  :type LastName: string
  :param LastName: 

    The last name, or surname, of the user.

    

  
  :type AuthenticationType: string
  :param AuthenticationType: **[REQUIRED]** 

    The authentication type for the user. You must specify USERPOOL.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`AppStream.Client.exceptions.ResourceAlreadyExistsException`

  
  *   :py:class:`AppStream.Client.exceptions.InvalidAccountStatusException`

  
  *   :py:class:`AppStream.Client.exceptions.InvalidParameterCombinationException`

  
  *   :py:class:`AppStream.Client.exceptions.LimitExceededException`

  
  *   :py:class:`AppStream.Client.exceptions.OperationNotPermittedException`

  