To assign AD groups dynamically based on user's employee type in Technical Rule

Sakshi28
New Contributor II
New Contributor II

Hi Team,

 

We have a requirement to assign AD groups dynamically based on user's employee type.
However, the challenge is e.g.
Employee Type: SALES_AGENT
AD group: CN=NA-SG-SALES-AGENT,OU=Groups,DC=na,DC=net

 

So we also need '_' (underscore) to be replaced with '-' (hyphen) as we can not directly call ${user.employeetype} in object to be assigned.


Please share your inputs on the same.

1 REPLY 1

rushikeshvartak
All-Star
All-Star

${user.employeetype.replace('_', '-')}