Dormant account access review automation is the job that flags a privileged account whose last successful directory sign-in is past the threshold, and disables that account before the next quarterly campaign opens. A campaign asks a reviewer whether a seat is still justified. This job asks a narrower question the directory already recorded: this privileged account has not authenticated. The quarterly file still covers privileged accounts that signed in inside the window. The automation covers the ones that did not.
The pain is a Global Administrator, or an IAM Identity Center admin assignment, on a user who last signed in months ago. The person may have left. The account may have been created for a cutover and left in place. The spreadsheet still says maintain because the reviewer recognized the name. Microsoft documents last sign-in on the user object through the signInActivity resource. We read that timestamp. The campaign is the remainder, after this job has already acted.
Where dormant account access review automation reads last sign-in
The population is privileged accounts only. A dormant ordinary user is a license and a leaver problem, and it belongs on a different list. This job takes directory role assignments the client marked privileged, including eligible assignments in Privileged Identity Management, and IAM Identity Center account assignments whose permission set is on the privileged list. A user in both systems is one person. The join key is the Entra object id when Identity Center is federated to Entra, and the identity-store user id when the user lives only in the Identity Center directory.
Last authentication comes from the IdP. On an Entra user we select signInActivity and use lastSuccessfulSignInDateTime. lastSignInDateTime records the last interactive attempt, including failures, so a password spray moves it. Successful access is the field that means the account was used. A blank lastSuccessfulSignInDateTime means the directory has no recorded success for that user. The property can lag up to a day after a real sign-in. The job stores the read time beside the timestamp. A row is eligible for disable only when the success time is older than the threshold and the read itself is at least a day old. The second check is what keeps a person who signed in yesterday from being disabled while the property is still catching up.
Non-interactive sign-in is its own column. A user who never opens a browser, and whose mail client still authenticates, is in use. We store lastNonInteractiveSignInDateTime and treat the later of the two success signals as last auth. An account with both values blank, or both older than the threshold, is the candidate.
Identity Center users who are not in Entra have no signInActivity property. For those users, last auth is the newest successful console or federated sign-in we already retain from CloudTrail for that principal. CloudTrail events we already store are the source. If that sample is missing, the row goes to a person. A missing signal stays open. It does not become a disable.
Service principals and IAM roles sit outside this job. They have no interactive sign-in on a user object. Non-human identity inventory is the list for those credentials. Putting them on this disable list would treat a workload that never signs in as a person as if it were an abandoned admin.
Accounts the job leaves in place
Two exclusions live in the policy table, so a reviewer does not have to remember them.
Emergency access accounts are supposed to be quiet. A stale last sign-in is the healthy state for that account. Emergency access account review is the dual-control review, including the alert when one of those accounts does sign in. This job loads that exclude list by object id. An id on the list is recorded as excluded. It is never a disable, including when last success is blank.
The second exclusion is a privileged account whose last success is inside the threshold. Those accounts stay on the quarterly campaign. Unused permissions on an account that still signs in are a different finding. IAM Access Analyzer unused access is the usage-versus-grant report for principals that are still active. A Global Administrator who signed in inside the window is not a dormant account, even when the admin role itself was not exercised that week.
Orphaned accounts, where the HR file has no living worker, are removed on the leaver path. A privileged orphan still appears here while the role is attached, and the action is the same disable. The source column says whether HR matched. The reviewer can see that column. The disable proceeds from privilege plus last success. It does not wait on a clean HR match for an account that is already past the threshold and still privileged.
The disable and the morning recheck
The action is two calls, and both have to land before the row can close. For an Entra user we set accountEnabled to false and remove the directory role assignment, eligible and active. For an Identity Center user we delete the account assignment on the privileged permission set, and we disable the identity-store user when no assignment remains. The row stores both request ids.
The next morning's ingest is the proof. accountEnabled must read false, or the privileged assignment must be gone, matching the action we recorded. If the user is enabled again, the row reopens. The source column says why: a lifecycle rule re-enabled the user, a PIM assignment was recreated, or an admin turned the account back on. A disable whose recheck still shows the account enabled stays open. We do not export it as completed removal.
user_id: 4c91
privilege: entra_role_eligible
role: Privileged Role Administrator
last_successful_sign_in: past_threshold
read_age_hours: 30
action: disable_account
request_id: req-778
recheck_account_enabled: false The GRC platform the company already runs receives the closed item. The file beside it is this ledger: disabled, reopened, excluded as emergency access, or sent to a person because the signal was missing. Security automation is where the ingest, the join, and the disable run. A quarterly export that still lists these users as maintain is the failure the job is there to stop.
What the campaign still asks a person
Reviewers see privileged accounts inside the threshold, the emergency exclusions, and rows the job could not finish. A disabled account leaves the open queue. If someone needs the account back, the restore is a new grant with a named owner and an end date. The dormant job evaluates that account again on the next read, with the new grant's clock starting from the restore.
The threshold lives in the policy table. Ninety days is the value we put there unless the client names another number. The number is data. The control is the join of privilege, last success, read age, and the recheck. Changing the number leaves the shape of the row alone.
A reviewer who chooses to keep a stale privileged account has to name a reason and a new check date. Maintain with an empty date does not close. That is how an old admin seat survives every quarter with the same comment copied forward. The new date is written on our row. The next read uses it.
Rutagon delivers the privileged population, the last-auth join, the disable, and the morning recheck. The directory remains the record of whether the account can sign in. Our store is the record of why it was disabled, and of the request id that did the work.
Frequently Asked Questions
Does a failed password count as the account being in use?
lastSignInDateTime moves when someone attempts an interactive sign-in, including a failure. The disable decision uses lastSuccessfulSignInDateTime, and the later of that value and the last non-interactive success. A spray against an old admin account does not refresh the success time. The account still qualifies once the threshold and the read-age check are both met.
What if the user signed in and the timestamp has not updated?
signInActivity can lag by as much as a day. The job stores the time of the read and withholds the disable until that read is at least a day old. The next morning's read either shows a fresh success, which drops the row out of the disable set, or confirms the stale value and allows the call.
How are break-glass accounts kept out of the disable?
Emergency access accounts are loaded by object id onto an exclude list that the dormant job reads before it selects candidates. A blank last success on that list is the expected state, and the row is recorded as excluded. A later success on one of those accounts is handled by the emergency review, which opens an item when the sign-in appears.
What does the auditor receive besides the quarterly campaign?
The ledger for the period lists the user, the privilege, the last success, the read time, the action, the request id, and the recheck. A row marked disabled is one whose recheck showed the account disabled or the privileged assignment gone. The campaign file is the set of decisions on everyone the job left in place.
Ask for an access-review diagnostic that joins privileged accounts to IdP last sign-in. Contact Rutagon at https://rutagon.com/contact, 907-841-8407, or contact@rutagon.com.