Class SoDPolicy
- Namespace
- Excalibur.A3.Governance.SeparationOfDuties
- Assembly
- Excalibur.A3.Governance.Abstractions.dll
Defines a Separation of Duties policy that prevents a single user from holding a conflicting combination of roles or activities.
public sealed record SoDPolicy : IEquatable<SoDPolicy>
- Inheritance
-
SoDPolicy
- Implements
- Inherited Members
Constructors
SoDPolicy(string, string, string?, SoDSeverity, SoDPolicyScope, IReadOnlyList<string>, string?, string)
Defines a Separation of Duties policy that prevents a single user from holding a conflicting combination of roles or activities.
public SoDPolicy(string PolicyId, string Name, string? Description, SoDSeverity Severity, SoDPolicyScope PolicyScope, IReadOnlyList<string> ConflictingItems, string? TenantId, string CreatedBy)
Parameters
PolicyIdstringUnique identifier for this policy.
NamestringHuman-readable policy name.
DescriptionstringOptional policy description.
SeveritySoDSeverityThe severity level applied when this policy is violated.
PolicyScopeSoDPolicyScopeWhether the policy references roles or activities.
ConflictingItemsIReadOnlyList<string>The set of role names or activity names that conflict. A violation is detected when a user holds grants for two or more items in this list. Supports N-way conflicts (not just pairs).
TenantIdstringOptional tenant scope; null means the policy is global.
CreatedBystringIdentifier of the actor who created this policy.
Properties
ConflictingItems
The set of role names or activity names that conflict. A violation is detected when a user holds grants for two or more items in this list. Supports N-way conflicts (not just pairs).
public IReadOnlyList<string> ConflictingItems { get; init; }
Property Value
CreatedBy
Identifier of the actor who created this policy.
public string CreatedBy { get; init; }
Property Value
Description
Optional policy description.
public string? Description { get; init; }
Property Value
Name
Human-readable policy name.
public string Name { get; init; }
Property Value
PolicyId
Unique identifier for this policy.
public string PolicyId { get; init; }
Property Value
PolicyScope
Whether the policy references roles or activities.
public SoDPolicyScope PolicyScope { get; init; }
Property Value
Severity
The severity level applied when this policy is violated.
public SoDSeverity Severity { get; init; }
Property Value
TenantId
Optional tenant scope; null means the policy is global.
public string? TenantId { get; init; }