MGCWardenAuditSensitiveRoleGranted
Business event raised when a role on the sensitive-role register is granted. WHY THIS ONE EXISTS AND THE OTHER TWO DO NOT. The two families the compliance parameter's old help text also promised are NOT chartered; asks for a deprovisioning queue that "a human confirms or excepts" with "every action audited", and asks that "every run [is] logged as an audit event with parameters", which is Warden's own audit store, not an integration message. Building those two would have been new integration surface nobody asked for; the help text that promised them was corrected instead. IT IS AN ADDITIONAL CHANNEL, NOT A REPLACEMENT. It said SendEmail was hardcoded to No so the alert was a row nobody is pushed, which invited the flip. The flag is a record marker, not a send trigger; its only readers on this deployment are EventInbox.delete() and EventJobAlertCleanup, the send decision lives on EventRule.SendAlertEmail, and a directly inserted row never reaches the sending code; so flipping it would mail nobody and would leave the row soft-delete-only. The accurate division of labour is the one this event was built on: the EventInbox row is the in-client channel, this event is the channel that leaves the box, and neither substitutes for the other. Emission is best-effort and gated by MGCWardenAuditComplianceParameters.BusinessEventsEnabled via MGCWardenGovernanceEventSender::sendCompliance; a send failure never blocks or unwinds role capture. The call site sits after recordEvent's commit, so it publishes a grant the database has already kept.
- Event id:
MGCWardenAuditSensitiveRoleGranted - Contract class:
MGCWardenAuditSensitiveRoleGrantedContract
Payload fields
| Name | Type | Description |
|---|---|---|
RoleName | str | |
RoleAotName | str | |
TargetUserRef | MGCWardenUserRef | |
ActionByRef | MGCWardenUserRef | |
RecordedByRef | MGCWardenUserRef | |
Source | str | |
AlertRecipients | str | |
RoleEventRecId | int64 | |
GrantedDateTime | utcdatetime | |
Company | DataAreaId |