:doc:`Connect <../../connect>` / Client / update_user_hierarchy

*********************
update_user_hierarchy
*********************



.. py:method:: Connect.Client.update_user_hierarchy(**kwargs)

  

  Assigns the specified hierarchy group to the specified user.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserHierarchy>`_  


  **Request Syntax**
  ::

    response = client.update_user_hierarchy(
        HierarchyGroupId='string',
        UserId='string',
        InstanceId='string'
    )
    
  :type HierarchyGroupId: string
  :param HierarchyGroupId: 

    The identifier of the hierarchy group.

    

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

    The identifier of the user account.

    

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

    The identifier of the Amazon Connect instance. You can `find the instance ID <https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html>`__ in the Amazon Resource Name (ARN) of the instance.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidParameterException`

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

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

  
  *   :py:class:`Connect.Client.exceptions.InternalServiceException`

  