:doc:`FinSpaceData <../../finspace-data>` / Client / reset_user_password

*******************
reset_user_password
*******************



.. py:method:: FinSpaceData.Client.reset_user_password(**kwargs)

  

  Resets the password for a specified user ID and generates a temporary one. Only a superuser can reset password for other users. Resetting the password immediately invalidates the previous password associated with the user.

  

  .. danger::

        This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.


  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/ResetUserPassword>`_  


  **Request Syntax**
  ::

    response = client.reset_user_password(
        userId='string',
        clientToken='string'
    )
    
  :type userId: string
  :param userId: **[REQUIRED]** 

    The unique identifier of the user that a temporary password is requested for.

    

  
  :type clientToken: string
  :param clientToken: 

    A token that ensures idempotency. This token expires in 10 minutes.

    This field is autopopulated if not provided.

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

    
    ::

      {
          'userId': 'string',
          'temporaryPassword': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **userId** *(string) --* 

        The unique identifier of the user that a new password is generated for.

        
      

      - **temporaryPassword** *(string) --* 

        A randomly generated temporary password for the requested user. This password expires in 7 days.

        
  
  **Exceptions**
  
  *   :py:class:`FinSpaceData.Client.exceptions.InternalServerException`

  
  *   :py:class:`FinSpaceData.Client.exceptions.ValidationException`

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

  
  *   :py:class:`FinSpaceData.Client.exceptions.AccessDeniedException`

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

  
  *   :py:class:`FinSpaceData.Client.exceptions.ConflictException`

  