05/11/2023 01:03 AM
Hi All,
We have a DA ( dynamic attribute) called -" Location " - > if Location (for ex - India) selected set of entitlements will be shown and user will add submits.
next time if same user comes to ARS and selects Location as 'Japan' --> we should not allow him since his base location is India, he can only submit for India entitlements.
Any inputs on the above requirements how to achieve ?
Solved! Go to Solution.
05/17/2023 01:32 AM
Hello @IAM_99,
To achieve this, you can configure the dynamic attribute at the endpoint level. Please refer to the following documentation for your specific use case:
Below is a sample query that can be used as a single select query for the dynamic attribute:
Sample Query:
SELECT CASE
WHEN u.country='India' THEN 'India'
WHEN u.country='Japan' THEN 'Japan'
-- Add more countries here if needed
END AS ID
FROM users u
WHERE u.userkey = ${requestee}
You can add more countries to the query as per your requirements.
Thanks
05/17/2023 04:49 AM
He can only India entitlement means india value should be stored under some user property