Interface IGrantAuditor
- Namespace
- MailFathom.Application.Access.Grants
- Assembly
- MailFathom.Application.dll
Records that an administrator changed a role, a group, or a role assignment.
public interface IGrantAuditor
Remarks
Each of these changes what somebody may do — a role's list reaches everybody assigned it, a membership is receiving the group's assignments, and an assignment is a grant — and none of them leaves a trace anywhere else. The record is what an operator reads when a permission turns up that nobody remembers giving, beside the explanation ExplainUserGrantAsync(UserId, CancellationToken) gives of where it comes from now.
The port is narrow for the reason IUserCredentialAuditor is: the sink behind it is undecided — structured logging today, an audit table or an external evidence store once compliance evidence is collected — and one operation is all a caller may reach for.
Methods
- RecordGrantChangeAsync(GrantChange, CancellationToken)
Records one change to roles, groups, or assignments.