Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/12/2024 01:33 AM
Hi Team,
we are having a requirement to compare the Access (Accounts and Entitlements) of 2 users via runtime analytics.
Do you have any sample query for this or link?
Regards,
Rama
Solved! Go to Solution.
07/12/2024 02:42 AM
@rama_roy please use below users and accounts access ent's
select
u.username,
u.firstname,
u.lastname,
u.statuskey as status_key,
accounts.name as account_name,
endpoints.ENDPOINTNAME,
accounts.STATUS as account_status,
et.displayname as entitlement_type,
ev.entitlement_value,
ev.displayname,
ev.status as entitlement_status,
m.username as manager_username,
m.displayname as manager_name
from
users u
left join user_accounts on user_accounts.userkey = u.userkey
left join accounts on accounts.accountkey = user_accounts.ACCOUNTKEY
left join endpoints on endpoints.ENDPOINTKEY = accounts.ENDPOINTKEY
left join account_entitlements1 ae on ae.accountkey = accounts.ACCOUNTKEY
left join entitlement_values ev on ev.entitlement_valuekey = ae.entitlement_valuekey
left join entitlement_types et on et.entitlementtypekey = ev.entitlementtypekey
left join users m on m.userkey = u.manager
where
u.statuskey = 1
and accounts.status != 'SUSPENDED FROM IMPORT SERVICE' and u.username in (xx,xx)
You run report and history u can check and click on compare it will gett results.
07/12/2024 03:21 AM
Thanks for the update Raghu. But what I am looking for if I can create which will allow me to provide 2 users name as Dynamic Attributes? can I use username=${username}
07/12/2024 03:57 AM
I am trying the below query which is giving me correct result when I am giving the username in the query but in runtime it is not giving me any data.
select u.username,
a.name as AccountName,
ev.entitlement_value as EntitlementName,
s.systemname as SecuritySystemName,
e.endpointname
from users u
left join user_Accounts ua
on u.userkey=ua.userkey
left join accounts a
on ua.accountkey = a.accountkey
left join account_entitlements1 ae
on a.accountkey=ae.accountkey
left join entitlement_values ev
on ae.entitlement_valuekey=ev.entitlement_valuekey
left join endpoints e
on e.endpointkey=a.endpointkey
left join securitysystems s on
e.securitysystemkey=s.systemkey
where a.status in (1,'Manually Provisioned','Active')
and u.username=${username1} and u.username=${username2}
Regards,
Rama
07/12/2024 03:04 AM
Create 1 analytics (SQL Based) and add the username
Run 1st with user 1
Run 2 with user 2
and then use compare
07/12/2024 04:36 AM
How can I give 2 username is a single analytics in runtime?
07/12/2024 07:31 AM
select u.username,
a.name as AccountName,
ev.entitlement_value as EntitlementName,
s.systemname as SecuritySystemName,
e.endpointname
from users u
left join user_Accounts ua
on u.userkey=ua.userkey
left join accounts a
on ua.accountkey = a.accountkey
left join account_entitlements1 ae
on a.accountkey=ae.accountkey
left join entitlement_values ev
on ae.entitlement_valuekey=ev.entitlement_valuekey
left join endpoints e
on e.endpointkey=a.endpointkey
left join securitysystems s on
e.securitysystemkey=s.systemkey
where a.status in (1,'Manually Provisioned','Active')
and u.username in (${username})
07/12/2024 08:05 AM
Hi Rushikesh,
Thanks. I also did the same and ran it by selecting attribute type as string. Can you please tell me how can I put 2 users name in input? which type to select?
Regards,
Rama
07/12/2024 08:18 AM
String and values like rushi1,rushi2
07/12/2024 08:39 AM
I selected string and giving user1 then it is working as expected. but when giving user1,user2 showing no value.
It is working when selecting multiple select from list worked.
07/12/2024 08:41 AM
Ok go with it
07/12/2024 08:46 AM - edited 07/12/2024 08:53 AM
Will it be a runtime analytics or using sql query? Right now I created it using sql query.
Whenever I am editing the attributes, update button is showing greyed out. I need to change some value or update something then only it's enabling for update. Is it a known issue or environment specific problem?
Regards,
Rama
07/12/2024 08:47 AM
add dot in description. known issue