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

Service Account owners in Grant Access Completion email

ShyamSrisailam
Regular Contributor
Regular Contributor

Hi All,

Once the Service Account request is submitted and we have attached all emails in workflow level. First it goes for Approval, and we are using below syntax to print service account owners/User Groups in email, but the same service account owner/User gruops syntax is not working when it moved to Grant Access (WF) completion email.

${ServiceAccountOwnerMap.get("USEROWNERS").get("ALL").collect{it.firstname}}${ServiceAccountOwnerMap.get("USERGROUPOWNERS").get("ALL").collect{it.user_groupname}}

1. Let me know any other syntax we can use in Grant Access completion email to print owners and groups.

2.How can I make a condition if service account has type as users, then print only owner and if the type is group, then it has to print only groups. The above syntax is printing in list format, and it is printing empty list if groups are not present.

Example if groups are not present: [abcsd,edffdjk],[ ]

Example if users are not present: [ ],[abcd group,ujhfg group]

 

tried below options but didn't work

${ServiceAccountOwnerMap.get("USEROWNERKEY").get("ALL").collect{it.username}}
${ServiceAccountOwnerMap.get("ALL")?.collect{it.firstname}?.join(',')}

${com.saviynt.ecm.identitywarehouse.domain.Users.findById(USEROWNERKEY)?.firstname}

 

Regards
SrisailamShyamSundarGoud
0 REPLIES 0