:doc:`QBusiness <../../qbusiness>` / Client / create_user

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



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

  

  Creates a universally unique identifier (UUID) mapped to a list of local user ids within an application.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/qbusiness-2023-11-27/CreateUser>`_  


  **Request Syntax**
  ::

    response = client.create_user(
        applicationId='string',
        userId='string',
        userAliases=[
            {
                'indexId': 'string',
                'dataSourceId': 'string',
                'userId': 'string'
            },
        ],
        clientToken='string'
    )
    
  :type applicationId: string
  :param applicationId: **[REQUIRED]** 

    The identifier of the application for which the user mapping will be created.

    

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

    The user emails attached to a user mapping.

    

  
  :type userAliases: list
  :param userAliases: 

    The list of user aliases in the mapping.

    

  
    - *(dict) --* 

      Aliases attached to a user id within an Amazon Q Business application.

      

    
      - **indexId** *(string) --* 

        The identifier of the index that the user aliases are associated with.

        

      
      - **dataSourceId** *(string) --* 

        The identifier of the data source that the user aliases are associated with.

        

      
      - **userId** *(string) --* **[REQUIRED]** 

        The identifier of the user id associated with the user aliases.

        

      
    

  :type clientToken: string
  :param clientToken: 

    A token that you provide to identify the request to create your Amazon Q Business user mapping.

    This field is autopopulated if not provided.

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`QBusiness.Client.exceptions.InternalServerException`

  
  *   :py:class:`QBusiness.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`QBusiness.Client.exceptions.ConflictException`

  
  *   :py:class:`QBusiness.Client.exceptions.ThrottlingException`

  
  *   :py:class:`QBusiness.Client.exceptions.ValidationException`

  
  *   :py:class:`QBusiness.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`QBusiness.Client.exceptions.ServiceQuotaExceededException`

  