Skip to main content

Deprovisioning overdue monitor

The deprovisioning overdue monitor alerts the compliance recipients about every proposed leaver entry past its SLA date, once per entry per escalation step, and records each escalation on the entry's governance timeline. It revokes nothing.

At a glance​

Batch classMGCWardenDeprovisioningOverdueMonitor
Menu itemMGCWardenDeprovisioningOverdueMenuItem, label Deprovisioning overdue monitor
Menu pathSystem administration → Setup → Deprovisioning overdue monitor
Who may run itMGCWardenAuditAdministrationPriv (granted at Update) → MGCWardenAuditAdministrationDuty → Warden audit administrator (MGCWardenAuditAdministrator). The API operation MGCWardenBatchService.runDeprovisioningOverdueMonitor is granted on the same privilege and re-checks the same menu item
Feature toggleNone, deliberately. The Warden Evidence & Compliance toggle stops new findings; it never silences news about findings that already exist
Company scopePer legal entity. Entries and compliance parameters are per company and the run reads only its own company. Schedule it in every company that uses the deprovisioning queue
Scheduled by defaultNo. Nothing in the product creates a batch job for it
RecurrenceYou choose. Daily matches the SLA and re-alert interval, which are in days
Setup-gap rules watching itDeprovisioningOverdueNotScheduled (open entries, or a scheduled scan, and no recurrence of this monitor in this company); DeprovisioningOverdueNoRecipients (scheduled, but no recipient is a user here). DeprovisioningPastSla counts overdue entries whether or not this runs
Run recordThe entry itself (OverdueAlertStep, OverdueAlertedDateTime) and one governance event per escalation
Overlap guardNot guarded by MGCWardenBatchOverlapGuard. Each entry is locked (pessimisticlock) and its step re-read before it is stamped, so two runs alert a step once between them

Purpose and business justification​

The scan stamps an SLA date on every entry, but a date nobody is told has passed does not protect anything. Before this monitor, the only sign that a leaver's access had outlived its SLA was a count on the setup gaps page. The monitor turns each missed SLA into an alert to named people and repeats it at an interval while nobody acts, which is what an escalation is.

How and when it is triggered​

  • Scheduled from the menu item, with a recurrence, in each company.
  • Run now from the same menu item. canRunInNewSession() returns true.
  • API: MGCWardenBatchService.runDeprovisioningOverdueMonitor.

Configuration and scheduling options​

No dialog fields; pack() returns conNull(). Settings on Warden audit compliance parameters (per company):

SettingFieldDefaultEffect
Deprovisioning overdue alert recipientsDeprovisioningAlertRecipientsblankSemicolon-separated Dynamics 365 user IDs, not email addresses. Blank means escalations are recorded but nobody is alerted
Deprovisioning re-alert interval (days)DeprovisioningEscalationDays7Days between escalation steps. 0 or less means step 1 only
Deprovisioning SLA (days)DeprovisioningSlaDays7Used by the scan to set the SLA date; listed here because it decides when step 1 falls due

Escalation steps. Step 1 is due on the first run after the SLA date. With an interval of N days, step k is due from day (k − 1) × N + 1 past the SLA date. An entry is alerted only when the step now due is higher than the step last alerted. A monitor that did not run for three weeks raises one alert, at the step now due, not three.

Choosing a recurrence. Run it daily. A less frequent run delays step 1 by up to the recurrence and can skip intermediate steps; a more frequent run changes nothing, because a step is alerted once.

What it does​

  1. Reads every entry in this company with status Proposed and an SLA date before today.
  2. For each (escalate), in one transaction:
    • re-reads the entry under pessimisticlock; if it is no longer Proposed, or the step due is not higher than OverdueAlertStep, does nothing;
    • otherwise stamps OverdueAlertStep and OverdueAlertedDateTime;
    • writes a DeprovisioningOverdue governance event under the entry's DEPROV: document key. The event names the account, worker and holder by subject reference, says what Warden can see of the account now, says that Warden revokes nothing, and says who the alert was addressed to (or that nobody was).
  3. After the commit, sends the in-client alert (pop-up, no email) to each recipient that resolves to a user, through MGCWardenAuditAlertSender::sendToList. The alert names the account and worker in clear, because the people reading it have to act on them. A failed send is not retried for that step; the event is the durable record.
  4. An entry that throws is filed as an Error execution exception for that entry, and the next entry carries on. Its step was not stamped, so the next run tries again.
  5. Writes Warden deprovisioning overdue monitor: N proposed entr(ies) past the SLA date, N escalated to a new step, N could not be escalated. If it escalated anything with no recipients configured, it also warns that nobody was alerted.

A failure outside the per-entry catch files one Error exception (document key DEPROV-OVERDUE).

Dependencies and prerequisites​

Inputs and outputs​

DirectionTable or objectWhat
Reads, locks, updatesMGCWardenAuditDeprovisioningEntryOverdue Proposed entries; OverdueAlertStep, OverdueAlertedDateTime
ReadsMGCWardenAuditComplianceParametersRecipients and interval
ReadsUserInfoRecipient resolution
InsertsMGCWardenEventLogOne DeprovisioningOverdue row per escalation
InsertsEventInboxAlerts
Reads, insertsMGCWardenIdentityVaultThrough refFor and toRef
InsertsMGCWardenExecutionExceptionPer-entry and run failures

Logging and monitoring​

  • Deprovisioning queue: each entry's last alerted step and time.
  • Governance timeline of the entry: every escalation row.
  • Setup gaps: DeprovisioningOverdueNotScheduled, DeprovisioningOverdueNoRecipients, DeprovisioningPastSla.
  • Execution exceptions: entries that could not be escalated.

Errors, recovery and troubleshooting​

SymptomCause and recovery
Error The overdue alert for this deprovisioning entry could not be raised ...That entry's step was not recorded. The next run tries again. If the account has no subject reference yet, the row does not name it; open the entry
Error Deprovisioning overdue monitoring failed ...The run failed. Entries already escalated keep their step
Warning ... NOBODY WAS ALERTED ...No recipients configured. Set DeprovisioningAlertRecipients
Escalations recorded but a recipient saw nothingThat token is not a user here; the event names the tokens that did not resolve. DeprovisioningOverdueNoRecipients fires when none resolve
Overdue entries but no alerts at allThe monitor is not scheduled in this company. See DeprovisioningOverdueNotScheduled

The class does not implement BatchRetryable. run() catches every failure, so the task ends normally.

Impact on other functionality​

  • Guard ingestion forwards each DeprovisioningOverdue event to the audit store as a Write row, not as a decision, so the SOX ControlOperation section keeps counting only attestations and exceptions. See Guard event ingestion.
  • Store growth. One governance event per entry per step.
  • The entry is not otherwise changed: it stays Proposed until someone attests or excepts it.