Wiki

Clone wiki

Numera.LibrisAPI / identity.reset_password

Home > API Reference Documentation > identity.reset_password

identity.reset_password

The identity.reset_password action is used to reset the password of a current user, only if their security provider == "Numera.NIS". This will only work for users with the role of Agent Supervisor or above.

Input Parameters

PropertyRequiredDescription
account_idyesThe account_id of the user to change
passwordyesThe new password to use for this user

Output

There will be no result populated as part of this action, only the status code will tell you if it succeeded or there was an issue.

Possible Status Codes

Status CodeReasonDescription
1000NOT_IN_REALMIf the current user is not a Superuser, and their realm does not match the realm of the user they are trying to update, then the request will fail.
1001API_EXCEPTIONThe api_status_code, api_reason property of the result object will contain the code returned by Numera.Net if there was some type of API exception, if there was an http issue, the http_response_code will have the status code
1002INVALID_PROVIDERIf the user you are trying to reset does not use NIS, you will receive this exception because we can not update the credentials of other providers
1003INVALID_USERWe could not locate a user with the account_id you provided

Updated