Method ResetUserPassword
ResetUserPassword(String, String)
Method is deprecated and will herewith no longer be supported Reset user password
Declaration
bool ResetUserPassword(string tenantName, string user)
Parameters
Type | Name | Description |
---|---|---|
System.String | tenantName | Optional: Tenant name to logon to. See also GetAllTenantNames() |
System.String | user | User id or user name or user email address |
Returns
Type | Description |
---|---|
System.Boolean | True, if the password was successfully reset, otherwise false |
Remarks
- The password is only reset, after it was successfully emailed to the user
Examples
POST https://YourServerName/InfoShare/Json/Authentication/ResetUserPassword
Example for ResetUserPassword for a user.{
"tenantName": "DCIS_KENDOX",
"user": "john.doe"
}
Response:
{
"ResetUserPasswordResult":true
}
Exceptions
Type | Condition |
---|---|
ServiceException | Tenant not found {tenantName} (10038) |
ServiceException | No {server/ sender name/ sender address} defined in the SMTP settings (10145) |
ServiceException | No recipient mail address defined for user {loginName} (10146) |
ServiceException | User {user} is invalid: It corresponds neither to a valid user id nor user login name nor user email address (10165) |
ServiceException | Could not send reset user password email: {errorMessage} (10166) |
ServiceException | Could not send reset user password email (10167) |
ServiceException | Could not create new password: Max. attempts {maximumAttempts} reached (10168) |
ServiceException | Could not create new password (10169) |
ServiceException | Email address {0} is assigned to more than one user (10170) |