Leveraging Intelligent Recommendations for Operational Transformation. AMS Partners Click HERE | EMEA/APJ Click HERE |
11/17/2023 06:39 AM
Hi Team,
I have a use case where i need to send user's manager name and cp21 of manager. Currently it is being done by calling a JAR from connector which then pulls this values using Saviynt API but since we are trying to remove JAR dependency is there any attrbutes exposed that can be leveraged.
JSON -
{
"accountIdPath": "accountName",
"call": [{
"name": "call1",
"connection": "acctAuth",
"url": "<URL>",
"httpMethod": "POST",
"httpParams": "{ \"XGUID\": \"${user.customproperty21}\", \"S3_USER_ID\": \"${user.username}\", \"PERSON_STATUS\": \"${com.adw.PersonStatus.Personstatus(user.customproperty49)}\", \"LAST_NAME\": \"${user.lastname}\", \"FIRST_NAME\": \"${user.firstname}\", \"EMAIL\": \"${user.email}\", \"S3_EMPLOYEE_TYPE\": \"${user.employeeType}\", \"COUNTRY_CODE\": \"${com.adw.CountryCodeConverter_2.convertToThreeLetterCode(user.customproperty3)}\", \"COMPANY\": \"${user.companyname}\", \"STREET\": \"${user.street}\", \"STATE\": \"${user.state}\", \"POSTAL_CODE\": \"${user.region}\", \"MANAGER_NAME\": \"${com.adw.ManagerData.Mdp(user.owner.toString())}\", \"MANAGER_XGUID\": \"${com.adw.ManagerData.xguid(user.owner.toString())}\", \"TIME_STAMP\": \"${com.adw.SystemDateCalculator.getFormattedSystemDate()}\", \"RECORD_TYPE\": \"NEW\", \"SOR\": \"${user.customproperty15}\", \"FEED_PK\": \"${user.customproperty40}\", \"PERSONNEL_NUMBER\": \"${user.employeeid}\" }",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/x-www-form-urlencoded",
"successResponses": {
"statusCode": [200]
}
}]
}
http params are - MANAGER_NAME & MANAGER_XGUID
Solved! Go to Solution.
11/17/2023 06:53 AM
@anuragG : You can use saviynt default methods to pull that information using below variables
${com.saviynt.ecm.identitywarehouse.domain.Users.get(user?.manager)?.username}
${com.saviynt.ecm.identitywarehouse.domain.Users.get(user?.manager)?.customproperty21}
11/17/2023 07:00 AM
@anuragG try below
${com.saviynt.ecm.identitywarehouse.domain.Users.get(user?.manager)?.customproperty21}
${userManager.username}
${com.saviynt.ecm.identitywarehouse.domain.Users.get(user?.manager)?.username}
11/21/2023 06:08 AM
Thanks @Saathvik @SumathiSomala . This is supported in the latest versions as well right?
11/21/2023 08:49 AM - edited 11/21/2023 08:50 AM