Interface IOrphanedAccessDetector
- Namespace
- Excalibur.A3.Governance.OrphanedAccess
- Assembly
- Excalibur.A3.Governance.Abstractions.dll
Detects orphaned access by scanning grants against the identity system.
public interface IOrphanedAccessDetector
Remarks
Identifies grants held by non-active users (inactive, departed, or unknown status) and recommends appropriate actions. The detector reports recommendations but does not perform revocations itself.
Methods
DetectAsync(string?, CancellationToken)
Scans all grants, checks each user's status via IUserStatusProvider, and returns a report of orphaned grants with recommended actions.
Task<OrphanedAccessReport> DetectAsync(string? tenantId, CancellationToken cancellationToken)
Parameters
tenantIdstringOptional tenant scope. null scans all tenants.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<OrphanedAccessReport>
A report containing all detected orphaned grants.
GetService(Type)
Gets a sub-interface or service from this detector.
object? GetService(Type serviceType)
Parameters
serviceTypeTypeThe type of service to retrieve.