Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/25/2024 04:03 AM
Hi Team,
When we create an account for any application, a random password is generated, but when we disable the account and reactivate it, it uses the default password(Welcome123)which we have not configured anywhere so how can we generate a new password for that reactivated account in an email template? Once we complete the enable account task on the endpoint, the email should be triggered with the account name and the newly generated password and also we configured change password JSON to create new password but we are not getting how we can test this.
Please find code for reference-
{
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "##########",
"httpMethod": "POST",
"httpParams": "{\"UserKey\":\"${account.accountID}\",\"NewPassword\": \"${password}\"}",
"httpHeaders": {
"Authorization": "${accessToken}",
"X-Api-Key": "###############"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201,
200,
204
]
}
}
]
}
06/25/2024 04:23 AM
@arti_rathod7 try
,\"NewPassword\": \"${randompassword}\
or
${randomPassword},
06/25/2024 08:45 PM
Hi @Raghu ,
Could you please let us know how we can test these scenarios.
1.If user did not login for 14 days, then account will be automatically disabled and later vendor can raise a request, then this changepassjson should trigger to send new password.
2. If account gets enabled/Reactivated, then again new password should send to the user.
Thanks,
Bhargavi Padaraju.
06/25/2024 08:53 PM
1.If user did not login for 14 days, then account will be automatically disabled and later vendor can raise a request, then this changepassjson should trigger to send new password.
2. If account gets enabled/Reactivated, then again new password should send to the user.
06/25/2024 11:25 PM
Hi @rushikeshvartak , Thanks for the response.
We are able to generate new password for the enabled account in email template using User Update Rule.
In database where exactly will get the data for logged in details for the specific user who did not logged in for 14 days.
How can we acheive the 1st usecase, as we don't know whether the user has logged in or not in 14 days.
Thanks,
Bhargavi Padaraju.