Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

New password is not generating for enable account on email template

arti_rathod7
New Contributor II
New Contributor II

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

        ]

      }

    }

  ]

}

4 REPLIES 4

Raghu
All-Star
All-Star

@arti_rathod7  try

,\"NewPassword\": \"${randompassword}\

or

${randomPassword},


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

Bhargavi3
New Contributor III
New Contributor III

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.

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.


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

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.