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

dynamic Attribute

Rajatlm10
New Contributor III
New Contributor III

Hi ,

i need to non editable value in child DA based on the parent attribute. 

i am using the below query to achieve the same but its not working. 


SELECT id when ${RoleName}='Expense Processor' then 'EXP_PROCESSOR' end as id

union

SELECT id when ${RoleName}='Expense Proxy Logon' then 'EXP_PROXY_USER' end as id

 

Can anyone help me on this ?

 

2 REPLIES 2

PremMahadikar
All-Star
All-Star

Hi @Rajatlm10 ,

The below is the right syntax:

select case when ${RoleName}='Expense Processor' then 'EXP_PROCESSOR' end as id union select case when ${RoleName}='Expense Proxy Logon' then 'EXP_PROXY_USER' end as id

One example:

PremMahadikar_0-1716478521133.png

PremMahadikar_1-1716478555326.png

Query: select case when ${country}='United States' then 'US-001' when ${country}='Albania' then 'AL-008' end as id union select case when ${country}='United States' then 'US-002' when ${country}='Albania' then 'AL-009' end as id

 

If this helps your question, please consider selecting Accept As Solution and hit Kudos

rushikeshvartak
All-Star
All-Star

SELECT
CASE
WHEN ${RoleName} = 'Expense Processor' THEN 'EXP_PROCESSOR'
WHEN ${RoleName} = 'Expense Proxy Logon' THEN 'EXP_PROXY_USER'
ELSE NULL
END AS id


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