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

AccountNameRule in Active Directory Connector

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on June 30 2020 at 14:11 UTC

Hello,
I am trying to generate account name rules based on user's departments.
Similar to the example given in the Active Directory Connector - if(ServiceAccountOwnerMap.ServiceAccountType.equals('Service')
like .equals(), what other functions are exposed and available to use?
is there a .in() to compare multiple values? For example can I say
if(user.departmentname.in('Dev','Test','Prod))

Is a .like('Dev%','Prod%) function to compare wildcards?
Where can I get the full list of functions that we can use?

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.
2 REPLIES 2

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on July 2 2020 at 04:19 UTC

Hi Suparna,


Greetings!!


Basic Java methods can be used to evaluate your conditions for any operation like AccountNameRule/Create/update/delete AccountJSONs. The method .equals() is a similar example.


Thanks & Regards,

Anand Kumar Jha

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on July 2 2020 at 22:46 UTC

Hi Suparna,


Below is the example for reference with if-else logic


concat(users.firstname, users.city, (case when (users.lastname = 'admin')

THEN

concat('customproperty12',users.lastname)

ELSE

users.lastname

END))


This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.