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

Report for orphan accounts if any manual action performed

sandeepverma3
New Contributor
New Contributor

Hi Experts,

Hope you are doing well.

Use Case: Generate the report for orphan accounts where someone has added user or changed any attributes from accounts page.

Issue : I have created the query but that query also picking the normal accounts performed action as well. but we have to exclude that.

Run time Query:
select
ua.TYPEOFACCESS as 'Object Type',
a.name as 'Object Name',
ua.ActionType as 'Action Taken',
u.username as 'Accessed By',
ua.IPADDRESS as 'IP Address',
ua.ACCESSTIME as 'Event Time',
ua.DETAIL as 'Message',
e.endpointname
from
users u
left join userlogins l on l.USERKEY = u.userkey
left join userlogin_access ua on l.loginkey = ua.LOGINKEY
left join accounts a on a.accountkey = ua.OBJECTKEY
left join endpoints e on e.endpointkey = a.endpointkey
where
ua.Detail is not NULL
and ua.TYPEOFACCESS = 'ACCOUNTS'
and ua.OBJECTKEY is not null
and ua.ActionType in ('Update')
and a.accountkey not in (
select
ua.accountkey
from
user_Accounts ua
)
and ua.accesstime >= Subdate(
Sysdate(),
INTERVAL '${days}' day
)
UNION
select
ua.TYPEOFACCESS as 'Object Type',
a.name as 'Object Name',
ua.ActionType as 'Action Taken',
u.username as 'Accessed By',
ua.IPADDRESS as 'IP Address',
ua.ACCESSTIME as 'Event Time',
ua.DETAIL as 'Message',
e.endpointname
from
users u
left join userlogins l on l.USERKEY = u.userkey
left join userlogin_access ua on l.loginkey = ua.LOGINKEY
left join accounts a on a.accountkey = ua.OBJECTKEY
left join endpoints e on e.endpointkey = a.endpointkey
where
ua.Detail is not NULL
and ua.TYPEOFACCESS = 'ACCOUNTS'
and ua.OBJECTKEY is not null
and a.name in (
select
a.name
from
users u
left join userlogins l on l.USERKEY = u.userkey
left join userlogin_access ua on l.loginkey = ua.LOGINKEY
left join accounts a on a.accountkey = ua.OBJECTKEY
left join endpoints e on e.endpointkey = a.endpointkey
where
ua.Detail is not NULL
and ua.TYPEOFACCESS = 'ACCOUNTS'
and ua.OBJECTKEY is not null
and ua.ActionType in ('Update')
and ua.detail like '%updated username%'
)
and ua.ActionType in ('Update')
and ua.accesstime >= Subdate(
Sysdate(),
INTERVAL '${days}' day
)

Your guidance would be  highly valued for us in moving forward.
Please suggest if there is any other way to achieve the same scenario.

Thanks

Sandeep

3 REPLIES 3

rushikeshvartak
All-Star
All-Star

Question is how you will identify its normal  account you need to compare account name rule of application


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

sandeepverma3
New Contributor
New Contributor

Hi @rushikeshvartak,

Sorry but I could not get you exactly.
Here My question is if some orphan accounts gets correlated manually in Saviynt so after correlation how we can know in report this correlated account was orphan before.

Thanks

Sandeep

Refer https://forums.saviynt.com/t5/identity-governance/is-there-any-table-for-quot-account-history-quot-i...


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