Table of Contents

Class PolicyAssignment

Namespace
FoundationaLLM.Common.Models.Authorization
Assembly
FoundationaLLM.Common.dll

Represents a PBAC policy assignment.

public class PolicyAssignment : AssignmentBase
Inheritance
PolicyAssignment
Inherited Members
Extension Methods

Properties

PolicyDefinition

The PolicyDefinition referenced by the PolicyDefinitionId property.

[JsonIgnore]
public PolicyDefinition? PolicyDefinition { get; set; }

Property Value

PolicyDefinition

PolicyDefinitionId

The unique identifier of the policy definition.

[JsonPropertyName("policy_definition_id")]
public required string PolicyDefinitionId { get; set; }

Property Value

string

Methods

Enrich(List<string>)

Enriches the policy assignment with additional information.

public void Enrich(List<string> allowedInstanceIds)

Parameters

allowedInstanceIds List<string>

The list of FoundationaLLM instance identifiers used as context for the enrichment.

Remarks

This method is called when the policy assignments are loaded into memory. Besides the actual enrichment, it also ensures that the Scope property is set correctly.