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

Requested Query in Role Type

SwagatDas13
New Contributor
New Contributor

Hi All,

We have a requirement that the application role must be filtered based on the Dynamic Attribute selection. Example : If users department name is 'A' the respective roles need to be filtered for Selection. Department name is stored in Role CustomProperty 5(Single and multivalued).

We are able to filter out the roles for single value using query : r.customproperty5='${userdept}' but if CustomProperty5 contains multiple values(eg : A,B,C,D) then we are getting error occured in ARS form.

Can anyone help what query can we write to fix this?

roletype.PNG

roletype1.PNG

  

4 REPLIES 4

rushikeshvartak
All-Star
All-Star

r.customproperty5 IN ('${userdept}')


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Thanks @rushikeshvartak , Tried the same but not getting any Role

1.PNG

2.PNG

Can you share logs

You can use this also 

r.customproperty5 LIKE '%${userdept}%' OR
r.customproperty5 LIKE '%${userdept},%' OR
r.customproperty5 LIKE '%,${userdept}%' OR
r.customproperty5 LIKE '%,${userdept},%'

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Thanks a lot, you saved me 😊