AgentPrismRoleMeta
AgentPrism.AspNetCore.dllReports which role levels the current request’s caller satisfies.
public sealed record AgentPrismRoleMeta : IEquatable<AgentPrismRoleMeta>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<AgentPrismRoleMeta>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”The UI uses this field to hide edit buttons the caller has no permission for; server-side authorization is still the only source of truth, this field is not a security measure. If the corresponding role policy (AgentPrismPolicies) is not registered in the consumer’s authorization configuration, the corresponding field returns true: there is no role restriction, the endpoint only passes through the existing three-layer protection.
Constructors
Section titled “Constructors”AgentPrismRoleMeta()
Section titled “ AgentPrismRoleMeta()”public AgentPrismRoleMeta()Properties
Section titled “Properties”CanAdminister
Section titled “ CanAdminister”Whether the caller may write agent definitions, add MCP servers, and manage tenants and audit trails.
public required bool CanAdminister { get; init; }Property Value
Section titled “Property Value”CanOperate
Section titled “ CanOperate”Whether the caller may, in addition to Reader, start runs, give approvals, and delete sessions.
public required bool CanOperate { get; init; }Property Value
Section titled “Property Value”CanRead
Section titled “ CanRead”Whether the caller may read agents, runs, sessions, traces, and statistics.
public required bool CanRead { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(AgentPrismRoleMeta?)
Section titled “ Equals(AgentPrismRoleMeta?)”public bool Equals(AgentPrismRoleMeta? other)Parameters
Section titled “Parameters”other AgentPrismRoleMeta?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(AgentPrismRoleMeta?, AgentPrismRoleMeta?)
Section titled “ operator ==(AgentPrismRoleMeta?, AgentPrismRoleMeta?)”public static bool operator ==(AgentPrismRoleMeta? left, AgentPrismRoleMeta? right)Parameters
Section titled “Parameters”left AgentPrismRoleMeta?
right AgentPrismRoleMeta?
Returns
Section titled “Returns”operator !=(AgentPrismRoleMeta?, AgentPrismRoleMeta?)
Section titled “ operator !=(AgentPrismRoleMeta?, AgentPrismRoleMeta?)”public static bool operator !=(AgentPrismRoleMeta? left, AgentPrismRoleMeta? right)Parameters
Section titled “Parameters”left AgentPrismRoleMeta?
right AgentPrismRoleMeta?