Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Actionable Analytics Query to disable orphan accounts

Sharada
New Contributor III
New Contributor III

Hi all,

I wanted the query to disable Orphan accounts through Actionable Analytics. TIA

Regards,

sharada

 

6 REPLIES 6

PremMahadikar
Regular Contributor III
Regular Contributor III

Hi @Sharada ,

There should be Saviynt default actionable report for orphan accounts query. CC_Detected - Orphan Accounts

The same query shared below:

SELECT a.name 'Account Name',
       e.displayname 'Application Name',
       CASE
           WHEN a.status = 1 THEN
               'Active'
           ELSE
               a.status
       END AS 'AccountStatus',
       e.endpointKey,
       a.accountclass,
       a.ACCOUNTTYPE
FROM accounts a
    INNER JOIN endpoints e
        ON a.endpointKey = e.endpointKey
           AND a.status IN ( 1, 'Active', 'Manually Provisioned' )
    LEFT JOIN user_accounts ua
        ON ua.accountkey = a.accountkey
WHERE ua.USERKEY IS NULL;

 

If this answers your question, please consider selecting Accept As Solution and hit Kudos

Hi,

We tried this but it did not work. We could not see any revoke tasks generated for the orphan accounts.

Regards,
Sharada

You can't create disable account task for orphan account/ orphan account just tested

rushikeshvartak_0-1710475162908.png

 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

rushikeshvartak
All-Star
All-Star

Use below query

select a.name,a.accountkey as acctKey, endpointkey, 'disableAccount' as Default_Action_For_Analytics from accounts a where accountkey not in (select accountkey from user_accounts)

https://docs.saviyntcloud.com/bundle/EIC-Admin-v24x/page/Content/Chapter17-EIC-Analytics/Managing-An...


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi, Thank you . Will try this