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 class | MGCWardenDeprovisioningOverdueMonitor |
| Menu item | MGCWardenDeprovisioningOverdueMenuItem, label Deprovisioning overdue monitor |
| Menu path | System administration → Setup → Deprovisioning overdue monitor |
| Who may run it | MGCWardenAuditAdministrationPriv (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 toggle | None, deliberately. The Warden Evidence & Compliance toggle stops new findings; it never silences news about findings that already exist |
| Company scope | Per 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 default | No. Nothing in the product creates a batch job for it |
| Recurrence | You choose. Daily matches the SLA and re-alert interval, which are in days |
| Setup-gap rules watching it | DeprovisioningOverdueNotScheduled (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 record | The entry itself (OverdueAlertStep, OverdueAlertedDateTime) and one governance event per escalation |
| Overlap guard | Not 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):
| Setting | Field | Default | Effect |
|---|---|---|---|
| Deprovisioning overdue alert recipients | DeprovisioningAlertRecipients | blank | Semicolon-separated Dynamics 365 user IDs, not email addresses. Blank means escalations are recorded but nobody is alerted |
| Deprovisioning re-alert interval (days) | DeprovisioningEscalationDays | 7 | Days between escalation steps. 0 or less means step 1 only |
| Deprovisioning SLA (days) | DeprovisioningSlaDays | 7 | Used 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
- Reads every entry in this company with status Proposed and an SLA date before today.
- 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 thanOverdueAlertStep, does nothing; - otherwise stamps
OverdueAlertStepandOverdueAlertedDateTime; - writes a
DeprovisioningOverduegovernance event under the entry'sDEPROV: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).
- re-reads the entry under
- 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. - 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.
- 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
- The HR deprovisioning scan running in the same company, so there are entries. See HR deprovisioning scan and leaver intake.
- Recipients configured as user IDs that exist in this environment.
Inputs and outputs
| Direction | Table or object | What |
|---|---|---|
| Reads, locks, updates | MGCWardenAuditDeprovisioningEntry | Overdue Proposed entries; OverdueAlertStep, OverdueAlertedDateTime |
| Reads | MGCWardenAuditComplianceParameters | Recipients and interval |
| Reads | UserInfo | Recipient resolution |
| Inserts | MGCWardenEventLog | One DeprovisioningOverdue row per escalation |
| Inserts | EventInbox | Alerts |
| Reads, inserts | MGCWardenIdentityVault | Through refFor and toRef |
| Inserts | MGCWardenExecutionException | Per-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
| Symptom | Cause 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 nothing | That 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 all | The 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
DeprovisioningOverdueevent to the audit store as aWriterow, 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.
Related documentation
- Auditor / compliance officer
- HR deprovisioning scan and leaver intake, Guard event ingestion
- Aged-MISSING monitor for the count-side monitor this one follows
- Warden batch framework, Configuration reference