08/28/2023 08:47 PM - edited 08/28/2023 08:49 PM
Hi, We have set of entitlements that needs to be listed based on the dynamic attribute value populated.
The dynamic attribute value is autopopulated type and not based on selection. It basically have 2 values 'admin', 'user'. The customproperty40 of the entitlements holds this values as follows
A -'Admin'
B-'User'
C-'Admin,user'.
We have used the following requestable query in the entitlement type ev.customproperty40 like '${dynamicattr}%'.
When the cp40 value is Admin, it should display A, C when cp40 is user, it should display B,C
But the problem is, it is displaying all the entitlements A, B, C irrespective of the cp40 value. The query returns proper value in DA. but not in ARS entitlement page.
Can someone help what am I missing here?
08/28/2023 08:53 PM
User needs to select one time. Remove default value config from dynamic attribute
08/28/2023 08:59 PM - edited 08/28/2023 09:00 PM
No, We don't want this to be selected in UI. So we have made it non editable, and based on the requestor's profile, it will be auto populated. It has only 1 value in UI, but not populating the entitlements based on the value that is auto populated. Any other way to achieve this?
08/28/2023 09:00 PM
It won't work , User need to select
08/28/2023 09:01 PM
How dynamic attribute value is prepopulated based on what user's field can you share query
08/28/2023 09:06 PM
I have used limit in the query to populate.
Select 'Admin' as ID From Users u join user_accounts ua on u.userkey=ua.userkey join accounts a on a.accountkey=ua.accountkey join account_entitlements1 ae on ae.accountkey=a.accountkey where ae.entitlement_valuekey='611798' and u.userkey='${requestor}' union Select 'User' as ID limit 1
08/28/2023 09:08 PM
If its not possible in entitlements, is it possible in roles? Can you please provide with some sample queries to be used in request query in roles type?
08/28/2023 09:15 PM
r.status=1 and r.customproperty10='${DYNA}'
08/28/2023 09:14 PM
So what happens if user does not have that entitlement
08/28/2023 09:16 PM
It populates 'user' in the dynamic attribute
08/28/2023 09:44 PM
What happens when user selected manually. it will work as expected.
08/28/2023 10:31 PM
I tried with manual selection as well, it is not working either.
08/28/2023 10:47 PM
Entitlement filter query
08/28/2023 10:49 PM
Tried below
ev.customproperty40 like '${dynatttr}%'
ev.customproperty40 like '%${dynatttr}%'