Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/05/2024 01:30 PM
Continuing from previous thread: Solved: Re: Generate AD password based on initials of firs... - Saviynt Forums - 111969
I added ${this.binding.variables.each {RVkey,RVvalue -> println "$RVkey ------- $RVvalue" + "" + "br" + ">"}} and got binding variables.
I created a dynamic attribute at Endpoint as:
SQL query:
SELECT CONCAT( CASE LOWER(SUBSTRING(FIRSTNAME, 1, 1)) WHEN 'a' THEN 'Alfa' WHEN 'b' THEN 'Bravo' WHEN 'c' THEN 'Charlie' WHEN 'd' THEN 'Delta' WHEN 'e' THEN 'Echo' WHEN 'f' THEN 'Foxtrot' WHEN 'g' THEN 'Golf' WHEN 'h' THEN 'Hotel' WHEN 'i' THEN 'India' WHEN 'j' THEN 'Juliett' WHEN 'k' THEN 'Kilo' WHEN 'l' THEN 'Lima' WHEN 'm' THEN 'Mike' WHEN 'n' THEN 'November' WHEN 'o' THEN 'Oscar' WHEN 'p' THEN 'Papa' WHEN 'q' THEN 'Quebec' WHEN 'r' THEN 'Romeo' WHEN 's' THEN 'Sierra' WHEN 't' THEN 'Tango' WHEN 'u' THEN 'Uniform' WHEN 'v' THEN 'Victor' WHEN 'w' THEN 'Whiskey' WHEN 'x' THEN 'X-ray' WHEN 'y' THEN 'Yankee' WHEN 'z' THEN 'Zulu' END, CASE LOWER(SUBSTRING(LASTNAME, 1, 1)) WHEN 'a' THEN 'Alfa' WHEN 'b' THEN 'Bravo' WHEN 'c' THEN 'Charlie' WHEN 'd' THEN 'Delta' WHEN 'e' THEN 'Echo' WHEN 'f' THEN 'Foxtrot' WHEN 'g' THEN 'Golf' WHEN 'h' THEN 'Hotel' WHEN 'i' THEN 'India' WHEN 'j' THEN 'Juliett' WHEN 'k' THEN 'Kilo' WHEN 'l' THEN 'Lima' WHEN 'm' THEN 'Mike' WHEN 'n' THEN 'November' WHEN 'o' THEN 'Oscar' WHEN 'p' THEN 'Papa' WHEN 'q' THEN 'Quebec' WHEN 'r' THEN 'Romeo' WHEN 's' THEN 'Sierra' WHEN 't' THEN 'Tango' WHEN 'u' THEN 'Uniform' WHEN 'v' THEN 'Victor' WHEN 'w' THEN 'Whiskey' WHEN 'x' THEN 'X-ray' WHEN 'y' THEN 'Yankee' WHEN 'z' THEN 'Zulu' END, '@', DATE_FORMAT(startdate, '%b'), DATE_FORMAT(startdate, '%Y') ) AS ID FROM USERS where userkey=${requestee}
I want to pass value of this dynamic attribute to unicodePwd attribute of Active directory. How should I pass?
Also tried adding the dynamic attribute in email templates (to share password):
1. ${requestAccessAttributes?.get('adPassLogic')}
2. ${task?.requestAccessKey?.collect{it.request_access_attrss.findAll{it.attributeName.toString().equalsIgnoreCase('adPassLogic')}.collect{it.attributeValue}}.get(0)} (Output- '[]')
3. task?.requestAccessKey?.collect { it?.request_access_attrss?.findAll { attr -> attr?.attributeName?.toString()?.equalsIgnoreCase('adPassLogic') }?.collect { attr -> attr?.attributeValue } }?.flatten()?.join(', ') ?: 'N/A' (Output - same query in email)
09/05/2024 01:31 PM
Share bininding variables
09/05/2024 01:36 PM
Received in mail
09/05/2024 01:37 PM
Share in text format
09/05/2024 01:40 PM
resourceOwners ------- br> tasktype ------- New Accountbr> manager ------- Test001.Users1@xxxx.combr> accountOwners ------- []br> randompassword ------- ZFQboBm*C2lZRLDnmDbr> entitlement ------- []br> provisioningOwners ------- br> users ------- Test002_Users1@xxxxcombr> requestor ------- kauxxxxx.combr> out ------- java.io.PrintWriter@25545436br> account_password ------- XXXXXXXbr> task ------- com.saviynt.ecm.task.ArsTasks : 4134br> accountname ------- Test002_Users1@xxxxxcom Password - ZFQboBm*C2lZRLDnmDbr> requestid ------- 1715221br> endpointDisplayName ------- Active Directory Devbr> account_name ------- Test002_Users1xxxxxcombr> endpointOwners ------- br> requestormanager ------- abcs.xyz.xxxxx.combr> baseUrlForEmail ------- https://hostname.saviyntcloud.com/ECMbr> user ------- Test002_Users1@xxxxxcombr> taskaction ------- New Accountbr> account ------- Test002_Users1@xxxxxcombr> [resourceOwners:, tasktype:New Account, manager:Test001.Users1@xxxxx.com, accountOwners:[], randompassword:ZFQboBm*C2lZRLDnmD, entitlement:[], provisioningOwners:, users:Test002_Users1@xxxxxcom, requestor:kaustubh.pawar@xxxxx.com, out:java.io.PrintWriter@25545436, account_password:XXXXXXX, task:com.saviynt.ecm.task.ArsTasks : 4134, accountname:Test002_Users1@xxxxxcom Password - ZFQboBm*C2lZRLDnmD, requestid:1715221, endpointDisplayName:Active Directory Dev, account_name:Test002_Users1@xxxxxcom, endpointOwners:, requestormanager:abcs.xyz.xxxxx.com, baseUrlForEmail:https://hostname.saviyntcloud.com/ECM, user:Test002_Users1@xxxxxcom, taskaction:New Account, account:Test002_Users1@flyscootcom] []
09/05/2024 01:41 PM
account_password did you tried ?
09/05/2024 01:53 PM
It shows xxxxx
09/05/2024 02:08 PM
${account_password} | Obtains the password of the new account. Starting with Release v23.5, if the ${account_password} variable is used with this email template, the following behaviours will occur:
|
09/05/2024 04:16 PM
${task.password}
${password}
${account_password}
try above and let us know results
09/05/2024 11:36 PM
Hi @Kaustubh as per the image you have hidden the dynamic attribute it won't work you need to show om ARS page.. then it will work.
09/05/2024 11:52 PM
Try changing hide on create as false and see if it works.