Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Entitlements with no owners

MM
New Contributor II
New Contributor II

Can anyone point me to a query to find all the entitlements with no owners listed?

 

I tried checking userkey  in "entitlement_owners" table but couldn't find the anyone without userkey.

 

Something like this and of course it didn't work

 

select
ev.DISPLAYNAME as DisplayName,
ev.ENTITLEMENT_VALUE as Description,
u.username as username,
e.endpointname as Application,
eo.UPDATEDATE as Update_Date
from entitlement_values ev,
entitlement_owners eo,
users u,
entitlement_types et,
endpoints e
where
ev. ENTITLEMENT_VALUEKEY=eo.ENTITLEMENT_VALUEKEY and
eo.USERKEY is null and
ev.ENTITLEMENTTYPEKEY=et.ENTITLEMENTTYPEKEY and
e.ENDPOINTKEY=et.ENDPOINTKEY and ev.status=1

7 REPLIES 7

NM
Honored Contributor III
Honored Contributor III

@MM , join 2 tables entitlement value and owners and have a where condition where eo.userkey is null


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

MM
New Contributor II
New Contributor II

Thanks - you mean below? I still don't see any data

select
ev.DISPLAYNAME as DisplayName,
ev.ENTITLEMENT_VALUE as Description,
u.username as username,
e.endpointname as Application,
eo.UPDATEDATE as Update_Date
from entitlement_values ev,
entitlement_owners eo,
users u,
entitlement_types et,
endpoints e
where
ev. ENTITLEMENT_VALUEKEY=eo.ENTITLEMENT_VALUEKEY and
eo.USERKEY=u.USERKEY and
ev.ENTITLEMENTTYPEKEY=et.ENTITLEMENTTYPEKEY and
e.ENDPOINTKEY=et.ENDPOINTKEY and ev.status=1 and eo.USERKEY is null

 

 

MM_0-1730274494808.png

 

NM
Honored Contributor III
Honored Contributor III

@MM 

select

ev.DISPLAYNAME as DisplayName,

ev.ENTITLEMENT_VALUE as Description,

eo.UPDATEDATE as Update_Date

from entitlement_values ev,

entitlement_owners eo

Where ev. ENTITLEMENT_VALUEKEY=eo.ENTITLEMENT_VALUEKEY and eo.userkey is null


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

MM
New Contributor II
New Contributor II

MM_0-1730276213199.png

This no data....and that what I was trying to mention that I don't see any data with userkey in entitlement_owners is NULL. I can assure we do have entitlements with no owners. So if entitlement_owners is not the right table to look at, do we need to look at another table?

NM
Honored Contributor III
Honored Contributor III

@MM can you share column of entitlement owners table.


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

Manu269
All-Star
All-Star

Please join following tables :

entitlement_values

entitlement_types

entitlement_owners

users

and endpoints

 

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

rushikeshvartak
All-Star
All-Star

SELECT EV.DISPLAYNAME       AS DisplayName,
       EV.ENTITLEMENT_VALUE AS Description,
       U.USERNAME           AS Username,
       E.ENDPOINTNAME       AS Application,
       EO.UPDATEDATE        AS Update_Date
FROM   ENTITLEMENT_VALUES EV
       LEFT JOIN ENTITLEMENT_OWNERS EO
              ON EV.ENTITLEMENT_VALUEKEY = EO.ENTITLEMENT_VALUEKEY
       LEFT JOIN USERS U
              ON EO.USERKEY = U.USERKEY
       JOIN ENTITLEMENT_TYPES ET
         ON EV.ENTITLEMENTTYPEKEY = ET.ENTITLEMENTTYPEKEY
       JOIN ENDPOINTS E
         ON ET.ENDPOINTKEY = E.ENDPOINTKEY
WHERE  EO.USERKEY IS NULL
       AND EV.STATUS = 1; 

rushikeshvartak_0-1730296436857.png

rushikeshvartak_1-1730296449687.png

 

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.