Table of Contents

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

tenantId string

Optional tenant scope. null scans all tenants.

cancellationToken CancellationToken

Cancellation 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

serviceType Type

The type of service to retrieve.

Returns

object

The service instance, or null if not supported.