Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/09/2024 06:13 AM
Hi team, I require your attention.
Requirement: We have an application that allows both users and their managers to request a new account and entitlements. However, if the user's customproperty15 is null, neither the user nor their manager can raise a request for that user.
The proposed solution: We are trying to achieve this use case by fetching the customproperty15 value in the dynamic attribute section. If the user's customproperty15 is not null, the value will be automatically populated in the dynamic attribute section (CP15) when raising a request for the application. If the value is populated, the user can proceed to Review and Submit or raise a request. However, if the user's customproperty15 is null, the value will not be automatically populated in the dynamic attribute section, and neither the user nor the manager will be able to raise a request.
In the attached screenshot, the customproperty15 value must be automatically populated in the CP15 section when the user or their manager raises a request.
Attribute Level Name: CP15
We have tried all the below queries in the dynamic attribute section:
select customproperty15 as ID from users where username = ${users.username}
select customproperty15 as ID from users where userkey = ${user.id}
select customproperty15 as ID from users where userkey = ${requestee}
select customproperty15 as ID from users where userkey=${user.userkey}
Also, we referred to the below link.
Referred Link:-https://forums.saviynt.com/t5/ars/various-usage-of-dynamic-attributes/ta-p/37329
Please let us know if any possible solution is there.
Regards,
Sabyasachi Mohanty
Solved! Go to Solution.
07/09/2024 06:54 AM - edited 07/09/2024 06:55 AM
Hi @sabyasachi1 this is working fine in 24.4
Can you please compare the configurations for dynamic attribute with the above screenshot? Also, do you see any error in the logs, when you land on the request access page?
07/09/2024 07:21 AM
@sabyasachi1 below script working in 24.4v
we also using
select customproperty15 as ID from users where userkey = ${requestee}
07/09/2024 07:33 AM
RESTRICTIONS is dynamic attribute name
07/19/2024 01:04 AM
Try this query
WHERE USERS.USERKEY IN (SELECT customproperty15 FROM USERS WHERE USERS.userkey = ${requestee.id} ) AND ${requestee.customproperty15} IS NOT NULL
It's achieved required results as per your usecase.