Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/20/2023 12:42 AM
I am trying to user ${password} instead of {randomPassword} but it fails with the error "No such property password". Below is the json
{
"RESET":
{"pwdLastSet":"0",
"title": "password reset",
"userPassword":"${randomPassword}"}
Is there any other way to send the password set by the user via the process of "Change Password --> Reset Account Password for others"
Thanks in advance.
04/20/2023 01:48 AM
Hello @ronit,
You Have to use only ${password}, Random Password is only used for the new account.
Is there any other way to send the password set by the user via the process of "Change Password --> Reset Account Password for others?
Currently, this is not feasible.
04/20/2023 03:23 AM
When I use ${password}, it fails with an error "No such property password".
2023-04-19 10:31:45,189 [quartzScheduler_Worker-8] ERROR ldap.SaviyntGroovyLdapService - Error occured while changing password
groovy.lang.MissingPropertyException: No such property: password for class: SimpleTemplateScript3373
04/20/2023 04:48 AM
Hello @ronit,
It appears that there is a formatting problem with the JSON being used. You could consider using the following JSON structure instead:
{
"RESET": {
"pwdLastSet": "0",
"title": "password reset",
"userPassword": "${randomPassword}"
}
}
Thanks,
04/20/2023 04:54 AM
Hi,
My apologies, the json which I had shared earlier was missing an "}". Although I was using the right one in the system.
{
"RESET": {
"pwdLastSet": "0",
"title": "password reset",
"userPassword": "${randomPassword}"
}
}
Instead of using randomPassword, can we use ${password} ?
04/20/2023 04:58 AM
password will not work. I believe your use case to set password set by end user?
04/20/2023 04:59 AM
Yes. Could you please suggest on how to achieve this ?
04/21/2023 04:58 AM
Hello @ronit,
You cannot change the password from the JSON,
For this, you need to configure the change password tile on the ARS page and align the password policy to the security system to which you want to modify the password.
Thanks,