Method SetPasswordWithToken
SetPasswordWithToken(String, String, String)
Set password with token
Declaration
void SetPasswordWithToken(string tenantName, string newPassword, string token)
Parameters
Type | Name | Description |
---|---|---|
System.String | tenantName | The tenant name./> |
System.String | newPassword | Set the new password./> |
System.String | token | The token for a user |
Examples
POST https://YourServerName/InfoShare/Json/Authentication/SetPasswordWithToken
Example for set password with token for a user.{
"tenantName": "DCIS_KENDOX_TENANT",
"newPassword": "test_password",
"token": "eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8...."
}
Response:
{ }
Exceptions
Type | Condition |
---|---|
ServiceException | JWT Token UPN Identifier: {username} not found (10244) |
ServiceException | Could not create new password: Max. attempts {maximumAttempts} reached (10168) |
ServiceException | Could not create new password (10169) |
ServiceException | Password must contain a upper and a lower case character (10084) |
ServiceException | Password could not be set (10085) |
ServiceException | Password must contain a special character (10083) |
ServiceException | Password must contain a digit (10086) |
ServiceException | Password not long enough (10081) |
ServiceException | Life time ({lifeTimeSeconds}) for token reached. (10063) |
ServiceException | Tenant not found {tenantName} (10038) |
ServiceException | Life time ({lifeTimeSeconds}) for token reached. (10063) |
ServiceException | JWT Token UPN Identifier: {UPNAttributeName} not found (10244) |
ServiceException | User login name ({userLoginName}) already exists (deactivated or deleted) (10068) |
ServiceException | User not found {DeputyRepresantiveUserId} (10047) |
ServiceException | The administrative context {administrativeContext} is already checked out by user {displayLoginName} (10129) |
ServiceException | Token not valid. (10376) |