Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/12/2024 06:38 AM
Hi,
I am trying to reset the password of a SAP account in the EnableAccountJSON:
{
"LOGONDATA": {
"GLTGV": "${new java.text.SimpleDateFormat('yyyyMMdd').format(new Date())}",
"GLTGB": "${usersObj?.enddate==null?'99991231': new java.text.SimpleDateFormat('yyyyMMdd').format(usersObj?.enddate)}"
},
"PASSWORD": {
"BAPIPWD": "${randomPassword}"
}
}
The documentation for SAP also clearly states that randomPassword for enabling an account is available:
However, when I try to use it, the variables in the generated email look like this:
resourceOwners =
tasktype = Enable Account
manager = 1000330
accountOwners = []
randompassword = null
entitlement = []
provisioningOwners =
users = K_123588
requestor = xxx
out = java.io.PrintWriter@3b132686
account_password = null
task = com.saviynt.ecm.task.ArsTasks : 118189
accountname = K_123588 Updated Password - null
requestid = 2701156
endpointDisplayName = S4-E11
account_name = K_123588
endpointOwners = xxx
baseUrlForEmail = https://release-n-plus-one.saviyntcloud.com/ECM
user = K_123588
taskaction = Enable Account
account = K_123588
All variables containing the password are NULL.
For CreateAccountJSON, it works fine, however not for EnableAccountJSON.
Any reason this could be?
06/13/2024 10:21 PM
06/13/2024 11:23 PM
Hi,
there is a password policy defined and selected in the security system, yes.
The logs show no error, I could even find where it uses the correct password policy:
2024-06-12T15:07:40+02:00-ecm-worker-services.SaviyntCommonUtilityService-quartzScheduler_Worker-10-727zm-DEBUG-password policyRule: SAP RISE
2024-06-12T15:07:40+02:00-ecm-worker-services.SaviyntCommonUtilityService-quartzScheduler_Worker-10-727zm-DEBUG-Generating password from policy defined in connection params
06/15/2024 10:32 PM
use ${task.password}
06/17/2024 12:19 AM
If you mean to use it in EnableAccountJSON instead of ${randomPassword}, i just tried that, and it didn't work either. The password was "null" again:
resourceOwners =
tasktype = Enable Account
manager = 1000330
accountOwners = []
randompassword = null
entitlement = []
provisioningOwners =
users = K_123580
requestor = xxx
out = java.io.PrintWriter@31a6cb65
account_password = null
task = com.saviynt.ecm.task.ArsTasks : 118196
accountname = K_123580 Updated Password - null
requestid = 2730128
endpointDisplayName = S4-E11-ReadOnly
account_name = K_123580
endpointOwners = xxx
baseUrlForEmail = https://release-n-plus-one.saviyntcloud.com/ECM
user = K_123580
taskaction = Enable Account
account = K_123580
06/25/2024 12:03 AM
Do you have any other suggestions what could be wrong why the password is NULL?
06/25/2024 09:36 PM
${task?.password}
${password}
06/25/2024 11:51 PM
I put those different variables in my email template.
The email I receive upon enabling the account is this: