MGCWardenAuditLeaverIntake
One leaver record sent by an HR system outside Dynamics 365 for one company, through data management or OData. The HR deprovisioning scan matches open rows to a user account and raises or links a deprovisioning entry; what the HR system sent cannot be changed. Shown on Leaver intake records, where a user can withdraw a row; exposed as WardenAuditLeaverIntakes.
Fields
| Name | Type | Mandatory | Description |
|---|---|---|---|
SourceSystem | str | Yes | The HR system of record that sent this leaver record, as the importer names it. Evidence: written once with the record and never changed. With Source reference it identifies the record. |
SourceReference | str | Yes | The HR system's own identifier for this leaver event. Evidence: written once. A record is received once per source system and reference; a resend with the same reference changes nothing, and a correction is sent under a new reference. |
PersonnelNumber | str | No | The leaver's personnel number as the HR system sent it. Evidence: written once. Matched against D365 workers; when a user id is also sent it need not be one. |
UserId | UserId | No | The leaver's D365 user id as the HR system sent it. Evidence: written once. When it is sent, it is the account Warden evaluates. |
LeavingDate | TransDate | Yes | The leaver's last day of employment, the date an ended D365 employment carries. Evidence: written once. The first deprovisioning scan on a later day raises the entry, as it would for a D365 leaver. |
ImportedBy | MGCWardenUserRef | No | The account that imported the record, taken from the session and never from the import file. Shown as a subject reference; older records keep the user ID, because the record's tamper seal covers it. |
Status | MGCWardenAuditLeaverIntakeStatus | No | What Warden made of the record. Received, Pending, Nothing to revoke and Hired again are evaluated again by every deprovisioning scan; Raised, Linked, Quarantined and Withdrawn are final. |
StatusReason | str | No | Why the record has its status, in words for the importer. A quarantined record says what did not match and what to resend. |
StatusDateTime | TransDateTime | No | |
MatchedUser | UserId | No | The D365 account the record resolved to. Operational: Warden's current reading, re-derived while the record is open. |
MatchedPersonnelNumber | str | No | The D365 worker the record resolved to, when one has the personnel number sent. Operational, as Matched account. |
DeprovisioningEntry | RefRecId | No | The deprovisioning queue entry this record raised (Raised) or was linked to (Linked). |
ChainSequence | int64 | No | The record's place in this company's tamper-evident chain of leaver records, 1 for the first. Written once, on receipt; 0 means the record was never sealed, which the deprovisioning scan reports. |
ChainPreviousDigest | str | No | The chain digest of the record received just before this one in this company; blank for the first record. Written once. |
ChainDigest | str | No | SHA-256 over what the HR system sent, who imported it and when, chained to the previous digest. Written once; if any of those values changes later it no longer reproduces, and the deprovisioning scan reports it. |