:doc:`WorkMail <../../workmail>` / Client / reset_password

**************
reset_password
**************



.. py:method:: WorkMail.Client.reset_password(**kwargs)

  

  Allows the administrator to reset the password for a user.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ResetPassword>`_  


  **Request Syntax**
  ::

    response = client.reset_password(
        OrganizationId='string',
        UserId='string',
        Password='string'
    )
    
  :type OrganizationId: string
  :param OrganizationId: **[REQUIRED]** 

    The identifier of the organization that contains the user for which the password is reset.

    

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

    The identifier of the user for whom the password is reset.

    

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

    The new password for the user.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`WorkMail.Client.exceptions.DirectoryServiceAuthenticationFailedException`

  
  *   :py:class:`WorkMail.Client.exceptions.DirectoryUnavailableException`

  
  *   :py:class:`WorkMail.Client.exceptions.EntityNotFoundException`

  
  *   :py:class:`WorkMail.Client.exceptions.EntityStateException`

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

  
  *   :py:class:`WorkMail.Client.exceptions.InvalidPasswordException`

  
  *   :py:class:`WorkMail.Client.exceptions.OrganizationNotFoundException`

  
  *   :py:class:`WorkMail.Client.exceptions.OrganizationStateException`

  
  *   :py:class:`WorkMail.Client.exceptions.UnsupportedOperationException`

  