:doc:`Chime <../../chime>` / Client / get_user_settings

*****************
get_user_settings
*****************



.. py:method:: Chime.Client.get_user_settings(**kwargs)

  

  Retrieves settings for the specified user ID, such as any associated phone number settings.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetUserSettings>`_  


  **Request Syntax**
  ::

    response = client.get_user_settings(
        AccountId='string',
        UserId='string'
    )
    
  :type AccountId: string
  :param AccountId: **[REQUIRED]** 

    The Amazon Chime account ID.

    

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

    The user ID.

    

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

    
    ::

      {
          'UserSettings': {
              'Telephony': {
                  'InboundCalling': True|False,
                  'OutboundCalling': True|False,
                  'SMS': True|False
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **UserSettings** *(dict) --* 

        The user settings.

        
        

        - **Telephony** *(dict) --* 

          The telephony settings associated with the user.

          
          

          - **InboundCalling** *(boolean) --* 

            Allows or denies inbound calling.

            
          

          - **OutboundCalling** *(boolean) --* 

            Allows or denies outbound calling.

            
          

          - **SMS** *(boolean) --* 

            Allows or denies SMS messaging.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`Chime.Client.exceptions.UnauthorizedClientException`

  
  *   :py:class:`Chime.Client.exceptions.NotFoundException`

  
  *   :py:class:`Chime.Client.exceptions.ForbiddenException`

  
  *   :py:class:`Chime.Client.exceptions.BadRequestException`

  
  *   :py:class:`Chime.Client.exceptions.ThrottledClientException`

  
  *   :py:class:`Chime.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`Chime.Client.exceptions.ServiceFailureException`

  