:doc:`WorkDocs <../../workdocs>` / Client / deactivate_user

***************
deactivate_user
***************



.. py:method:: WorkDocs.Client.deactivate_user(**kwargs)

  

  Deactivates the specified user, which revokes the user's access to Amazon WorkDocs.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeactivateUser>`_  


  **Request Syntax**
  ::

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

    The ID of the user.

    

  
  :type AuthenticationToken: string
  :param AuthenticationToken: 

    Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`WorkDocs.Client.exceptions.EntityNotExistsException`

  
  *   :py:class:`WorkDocs.Client.exceptions.UnauthorizedOperationException`

  
  *   :py:class:`WorkDocs.Client.exceptions.UnauthorizedResourceAccessException`

  
  *   :py:class:`WorkDocs.Client.exceptions.FailedDependencyException`

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

  