Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/10/2024 04:32 AM
Hello Team,
There is a report which is responsible for fetching the Applications, its roles, Entitlements inside roles, Child Entitlements inside roles and then its Functions.
Below is the query which was developed:
06/10/2024 08:04 PM
SELECT DISTINCT rep.ENDPOINTNAME AS 'APPLICATION NAME', COALESCE(r.DISPLAYNAME, r.ROLE_NAME) AS 'REQUESTABLE ROLE', COALESCE(ev.ENTITLEMENT_VALUE, ev.ENTITLEMENT_VALUE) AS 'ENTITLEMENT', COALESCE(ev2.ENTITLEMENT_VALUE, ev2.ENTITLEMENT_VALUE) AS 'Privilege', COALESCE(f.DESCRIPTION, f.FUNCTION_NAME) AS 'FunctionName' FROM roles r INNER JOIN role_entitlements rev ON rev.ROLEKEY = r.ROLEKEY INNER JOIN endpoints rep ON rep.ENDPOINTKEY = r.ENDPOINTKEY LEFT JOIN entitlement_values ev ON ev.ENTITLEMENT_VALUEKEY = rev.ENTITLEMENT_VALUEKEY LEFT JOIN entitlements2 e2 ON ev.ENTITLEMENT_VALUEKEY = e2.ENTITLEMENT_VALUE1KEY LEFT JOIN entitlement_values ev2 ON e2.ENTITLEMENT_VALUE2KEY = ev2.entitlement_valuekey LEFT JOIN function_entitlements fe ON ( ev.ENTITLEMENT_VALUEKEY = fe.ENTITLEMENT_VALUEKEY OR e2.ENTITLEMENT_VALUE2KEY = fe.ENTITLEMENT_VALUEKEY ) LEFT JOIN functions f ON ( fe.functionkey = f.functionkey AND f.STATUS = 1 ) WHERE rep.CUSTOMPROPERTY6 = 'sodareport' AND r.STATUS = 1 AND r.REQUESTABLE = TRUE limit 1
|
06/11/2024 04:28 AM
Thanks Rushikesh, but above query works when I give limit as 100000. My report gives the data more than 3 lakh hence it is not working
06/11/2024 04:52 AM
Increase max row count in database
06/11/2024 04:26 AM
Thanks Rushikesh, but above query works when I give limit as 100000. My report gives the data more than 3 lakh hence it is not working