:doc:`IAM <../../iam>` / Client / remove_user_from_group

**********************
remove_user_from_group
**********************



.. py:method:: IAM.Client.remove_user_from_group(**kwargs)

  

  Removes the specified user from the specified group.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/RemoveUserFromGroup>`_  


  **Request Syntax**
  ::

    response = client.remove_user_from_group(
        GroupName='string',
        UserName='string'
    )
    
  :type GroupName: string
  :param GroupName: **[REQUIRED]** 

    The name of the group to update.

     

    This parameter allows (through its `regex pattern <http://wikipedia.org/wiki/regex>`__) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

    

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

    The name of the user to remove.

     

    This parameter allows (through its `regex pattern <http://wikipedia.org/wiki/regex>`__) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`IAM.Client.exceptions.NoSuchEntityException`

  
  *   :py:class:`IAM.Client.exceptions.LimitExceededException`

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

  

  **Examples**

  The following command removes the user named Bob from the IAM group named Admins.
  ::

    response = client.remove_user_from_group(
        GroupName='Admins',
        UserName='Bob',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResponseMetadata': {
            '...': '...',
        },
    }

  