Hello all,
I need a process, for PCI, to detect users who have not logged in to either Active Directory or Azure AD within a certain time period.
Is there a process that will analyze identity attributes and detect conditions such as
Is contractor= yes
Lifecycle State = active
AD lastLogonTimestamp > 9 days
AND
AzureAD last interactive login > 9 days
And if conditions are met, meaning the users hasn’t logged in within the last 10 days perform action: disable AD account (but no groups removed, just disable the account)
Right now we’ve accomplished this via a lengthy PowerShell script. We need a better solution.
Please let me know if I can clarify this ask.
Thanks!
Mike