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

********
get_user
********



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

  

  Describes the universally unique identifier (UUID) associated with a local user in a data source.

  

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


  **Request Syntax**
  ::

    response = client.get_user(
        applicationId='string',
        userId='string'
    )
    
  :type applicationId: string
  :param applicationId: **[REQUIRED]** 

    The identifier of the application connected to the user.

    

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

    The user email address attached to the user.

    

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

    
    ::

      {
          'userAliases': [
              {
                  'indexId': 'string',
                  'dataSourceId': 'string',
                  'userId': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **userAliases** *(list) --* 

        A list of user aliases attached to a user.

        
        

        - *(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) --* 

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

            
      
    
  
  **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`

  