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

********************
update_user_settings
********************



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

  

  Updates the settings for the specified user, such as phone number settings.

  

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


  **Request Syntax**
  ::

    response = client.update_user_settings(
        AccountId='string',
        UserId='string',
        UserSettings={
            'Telephony': {
                'InboundCalling': True|False,
                'OutboundCalling': True|False,
                'SMS': True|False
            }
        }
    )
    
  :type AccountId: string
  :param AccountId: **[REQUIRED]** 

    The Amazon Chime account ID.

    

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

    The user ID.

    

  
  :type UserSettings: dict
  :param UserSettings: **[REQUIRED]** 

    The user settings to update.

    

  
    - **Telephony** *(dict) --* **[REQUIRED]** 

      The telephony settings associated with the user.

      

    
      - **InboundCalling** *(boolean) --* **[REQUIRED]** 

        Allows or denies inbound calling.

        

      
      - **OutboundCalling** *(boolean) --* **[REQUIRED]** 

        Allows or denies outbound calling.

        

      
      - **SMS** *(boolean) --* **[REQUIRED]** 

        Allows or denies SMS messaging.

        

      
    
  
  
  :returns: None
  **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`

  