PARTNERS - Please join us for our upcoming webinar:
Leveraging Intelligent Recommendations for Operational Transformation.
AMS Partners Click HERE | EMEA/APJ Click HERE

Manager Details

anuragG
New Contributor III
New Contributor III

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

4 REPLIES 4

Saathvik
All-Star
All-Star

@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} 


Regards,
Saathvik
If this reply answered your question, please Accept As Solution and give Kudos to help others facing similar issue.

SumathiSomala
All-Star
All-Star

@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}

Regards,
Sumathi Somala

If this reply answered your question, please Accept As Solution and give Kudos.

anuragG
New Contributor III
New Contributor III

Thanks @Saathvik @SumathiSomala . This is supported in the latest versions as well right?

@anuragG : Yes it is supported. Also if the provided solution worked please mark it so that it will helps others who are in same situation


Regards,
Saathvik
If this reply answered your question, please Accept As Solution and give Kudos to help others facing similar issue.