Table of Contents

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

PolicyId string

Unique identifier for this policy.

Name string

Human-readable policy name.

Description string

Optional policy description.

Severity SoDSeverity

The severity level applied when this policy is violated.

PolicyScope SoDPolicyScope

Whether the policy references roles or activities.

ConflictingItems IReadOnlyList<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).

TenantId string

Optional tenant scope; null means the policy is global.

CreatedBy string

Identifier 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

IReadOnlyList<string>

CreatedBy

Identifier of the actor who created this policy.

public string CreatedBy { get; init; }

Property Value

string

Description

Optional policy description.

public string? Description { get; init; }

Property Value

string

Name

Human-readable policy name.

public string Name { get; init; }

Property Value

string

PolicyId

Unique identifier for this policy.

public string PolicyId { get; init; }

Property Value

string

PolicyScope

Whether the policy references roles or activities.

public SoDPolicyScope PolicyScope { get; init; }

Property Value

SoDPolicyScope

Severity

The severity level applied when this policy is violated.

public SoDSeverity Severity { get; init; }

Property Value

SoDSeverity

TenantId

Optional tenant scope; null means the policy is global.

public string? TenantId { get; init; }

Property Value

string