---
title: "Orleans.Lattice.Api.Auth - Public API"
url: "https://nsta1.github.io/Orleans.Lattice/docs/lattice.api.abstractions/api/orleans-lattice-api-auth.html"
source: "https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/docs/lattice.api.abstractions/api.md?plain=1#L1215-L1438"
agent_spec: "https://nsta1.github.io/Orleans.Lattice/docs/agents/api/state.json"
package: "Orleans.Lattice.Api.Abstractions"
version: "10.5.0"
documents: "Orleans.Lattice 10.5.0 (release line 10.5)"
built: "2026-12-05"
all-pages: "https://nsta1.github.io/Orleans.Lattice/llms.txt"
bundle: "https://nsta1.github.io/Orleans.Lattice/docs/lattice.api.abstractions/llms-full.txt"
---
# `Orleans.Lattice.Api.Auth`

Part of [Public API](../api.md).

Implemented by [`Orleans.Lattice.Api.Auth`](../../lattice.api.auth/README.md) and exposed remotely by [`Orleans.Lattice.Api.Auth.Grpc`](../../lattice.api.auth.grpc/README.md). 14 public types.

| Type | Kind | Summary |
|---|---|---|
| `ILatticeAuthAdmin` | interface | Transport-agnostic configuration and control facade over a cluster's authorization system: membership administration, policy administration, and policy introspection behind a single surface. |
| `AccessAuthenticationMode` | enum | The authentication posture a silo can authoritatively determine for itself from its own registrations, surfaced by `GetAccessModelAsync` so a UI can render the right create-form guidance and warn when access is effectively open. |
| `AccessModelDescriptor` | sealed record | A best-effort description of a cluster's access model, returned by `GetAccessModelAsync`, reporting what the silo can authoritatively determine from its own registrations: the active authentication mode, whether authorization rules are actually enforced, and whether an identity directory is available for validating candidate ids (together with the provider id and operator-facing explanation a create form should render). |
| `ApiAuthTypeAliases` | static class | Centralised Orleans serialization alias constants for every `Orleans.Lattice.Api.Auth` type that participates in the wire format. |
| `AuthEffectivePermissions` | sealed record | The result of `EffectivePermissionsAsync`: the authored authorization rules that name a subject directly or through its groups, resolved for dashboards and UX. |
| `AuthExplanation` | sealed record | The result of `ExplainAsync`: the authorization verdict for a subject / operation / scope, plus the supporting detail that explains it. |
| `AuthGroup` | sealed record | A group record as surfaced by the admin facade: a stable `GroupId` and an optional human-readable `DisplayName`. |
| `AuthGroupPage` | sealed record | One page of the group catalog. |
| `AuthPageRequest` | sealed record | Paging request for the admin facade's paged list endpoints (the group catalog, and the rule catalog whole or per tree; group-member lists are returned whole and take no paging request). |
| `AuthPolicyPosture` | sealed record | The opt-in authorization posture of a cluster: the two tier flags that are off by default and, while off, change nothing an operator can see without inspecting configuration. |
| `AuthRulePage` | sealed record | One page of the authorization rule catalog. |
| `DirectoryPrincipalDescriptor` | sealed record | A principal (user or group) as it exists in the configured external identity source, surfaced by `SearchDirectoryAsync` and `ResolveDirectoryPrincipalAsync`. |
| `DirectorySearchRequest` | sealed record | A typeahead / browse request against the configured identity directory, forwarded by `SearchDirectoryAsync` to validate candidate principal ids before an operator grants them access. |
| `DirectorySearchResult` | sealed record | One page of identity-directory search results returned by `SearchDirectoryAsync`: the matched principals, an optional continuation token for a 'load more' follow-up, and an `Available` flag distinguishing 'no principals matched' from 'no identity directory is configured'. |

## `ILatticeAuthAdmin`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Auth/ILatticeAuthAdmin.cs) (line 34).

`public interface ILatticeAuthAdmin`

- `Task UpsertGroupAsync(AuthGroup group, CancellationToken cancellationToken = default)`
- `Task<AuthGroup?> GetGroupAsync(string groupId, CancellationToken cancellationToken = default)`
- `Task RemoveGroupAsync(string groupId, CancellationToken cancellationToken = default)`
- `Task<AuthGroupPage> ListGroupsAsync(AuthPageRequest request, CancellationToken cancellationToken = default)`
- `Task AddMemberAsync(string groupId, string memberId, MembershipMemberKind memberKind = MembershipMemberKind.User, CancellationToken cancellationToken = default)`
- `Task RemoveMemberAsync(string groupId, string memberId, CancellationToken cancellationToken = default)`
- `Task<IReadOnlyList<string>> ListGroupMembersAsync(string groupId, CancellationToken cancellationToken = default)`
- `Task<IReadOnlyList<string>> ListSubjectGroupsAsync(string memberId, CancellationToken cancellationToken = default)`
- `Task PutRuleAsync(LatticeAuthorizationRule rule, CancellationToken cancellationToken = default)`
- `Task<LatticeAuthorizationRule?> GetRuleAsync(string treeId, string ruleId, CancellationToken cancellationToken = default)`
- `Task<bool> RemoveRuleAsync(string treeId, string ruleId, CancellationToken cancellationToken = default)`
- `Task<AuthRulePage> ListRulesAsync(AuthPageRequest request, CancellationToken cancellationToken = default)`
- `Task<AuthRulePage> ListRulesForTreeAsync(string treeId, AuthPageRequest request, CancellationToken cancellationToken = default)`
- `Task<AuthExplanation> ExplainAsync(string subjectId, LatticeOperation operation, LatticeScope scope, LatticeSubjectSelectorKind subjectKind = LatticeSubjectSelectorKind.User, CancellationToken cancellationToken = default)`
- `Task<AuthEffectivePermissions> EffectivePermissionsAsync(string subjectId, LatticeSubjectSelectorKind subjectKind = LatticeSubjectSelectorKind.User, CancellationToken cancellationToken = default)`
- `Task<DirectorySearchResult> SearchDirectoryAsync(DirectorySearchRequest request, CancellationToken cancellationToken = default)`
- `Task<DirectoryPrincipalDescriptor?> ResolveDirectoryPrincipalAsync(string principalId, CancellationToken cancellationToken = default)`
- `Task<AccessModelDescriptor> GetAccessModelAsync(CancellationToken cancellationToken = default)`

## `AccessAuthenticationMode`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Auth/Model/AccessAuthenticationMode.cs) (line 18).

`public enum AccessAuthenticationMode`

- `Unknown`
- `Anonymous`
- `Claims`
- `Basic`

## `AccessModelDescriptor`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Auth/Model/AccessModelDescriptor.cs) (line 21).

`public sealed record AccessModelDescriptor`

- `public AccessAuthenticationMode AuthenticationMode { get; init; }`
- `public bool RulesEnforced { get; init; }`
- `public bool DirectoryAvailable { get; init; }`
- `public required string DirectoryProviderId { get; init; }`
- `public required string DirectoryExplanation { get; init; }`
- `public bool LocalMembershipEffective { get; init; }`
- `public bool AllTreesGrantsEnabled { get; init; }`
- `public bool AccessAdministrationDelegationEnabled { get; init; }`
- `public bool DelegatedTenantAccessAdministrationEnabled { get; init; }`
- `public bool DirectoryValidationRequired { get; init; }`

## `ApiAuthTypeAliases`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Auth/Model/ApiAuthTypeAliases.cs) (line 16).

`public static class ApiAuthTypeAliases`

- `public const string AuthGroup`
- `public const string AuthPageRequest`
- `public const string AuthGroupPage`
- `public const string AuthRulePage`
- `public const string AuthExplanation`
- `public const string AuthEffectivePermissions`
- `public const string AuthPolicyPosture`
- `public const string DirectorySearchRequest`
- `public const string DirectorySearchResult`
- `public const string DirectoryPrincipalDescriptor`
- `public const string AccessModelDescriptor`
- `public const string AuthGroupRef`
- `public const string AuthMemberRef`
- `public const string AuthRuleRef`
- `public const string AuthMemberEdge`
- `public const string AuthPutRule`
- `public const string AuthTreeRulesPage`
- `public const string AuthExplainQuery`
- `public const string AuthSubjectRef`
- `public const string AuthAck`
- `public const string AuthGroupResult`
- `public const string AuthRuleResult`
- `public const string AuthStringList`
- `public const string AuthRuleRemoved`
- `public const string AuthPrincipalRef`
- `public const string AuthDirectoryPrincipalResult`
- `public const string AuthAccessModelQuery`

## `AuthEffectivePermissions`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Auth/Model/AuthEffectivePermissions.cs) (line 25).

`public sealed record AuthEffectivePermissions`

- `public required string SubjectId { get; init; }`
- `public IReadOnlyList<string> GroupIds { get; init; }`
- `public IReadOnlyList<LatticeAuthorizationRule> Rules { get; init; }`
- `public AuthPolicyPosture Posture { get; init; }`
- `public IReadOnlyList<TenantRuleLayer> RuleLayers { get; init; }`

## `AuthExplanation`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Auth/Model/AuthExplanation.cs) (line 17).

`public sealed record AuthExplanation`

- `public required string SubjectId { get; init; }`
- `public IReadOnlyList<string> GroupIds { get; init; }`
- `public LatticeOperation Operation { get; init; }`
- `public required LatticeScope Scope { get; init; }`
- `public bool Allowed { get; init; }`
- `public bool Filtered { get; init; }`
- `public string? Reason { get; init; }`
- `public LatticeEffect DefaultEffect { get; init; }`
- `public IReadOnlyList<LatticeAuthorizationRule> MatchedRules { get; init; }`
- `public AuthPolicyPosture Posture { get; init; }`
- `public TenantRuleLayer? DecidingLayer { get; init; }`
- `public string? DecidingRuleId { get; init; }`

## `AuthGroup`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Auth/Model/AuthGroup.cs) (line 13).

`public sealed record AuthGroup`

- `public required string GroupId { get; init; }`
- `public string? DisplayName { get; init; }`

## `AuthGroupPage`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Auth/Model/AuthGroupPage.cs) (line 11).

`public sealed record AuthGroupPage`

- `public IReadOnlyList<AuthGroup> Entries { get; init; }`
- `public string? NextPageToken { get; init; }`

## `AuthPageRequest`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Auth/Model/AuthPageRequest.cs) (line 15).

`public sealed record AuthPageRequest`

- `public const int DefaultPageSize`
- `public const int MaxPageSize`
- `public int PageSize { get; init; }`
- `public string? PageToken { get; init; }`
- `public bool ActiveTenantOnly { get; init; }`
- `public bool IncludeTenantGroups { get; init; }`
- `public int EffectivePageSize`

## `AuthPolicyPosture`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Auth/Model/AuthPolicyPosture.cs) (line 21).

`public sealed record AuthPolicyPosture`

- `public bool AllTreesGrantsEnabled { get; init; }`
- `public bool AccessAdministrationDelegationEnabled { get; init; }`

## `AuthRulePage`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Auth/Model/AuthRulePage.cs) (line 16).

`public sealed record AuthRulePage`

- `public IReadOnlyList<LatticeAuthorizationRule> Entries { get; init; }`
- `public string? NextPageToken { get; init; }`
- `public string? Tenant { get; init; }`
- `public IReadOnlyList<string?> TenantRuleTenants { get; init; }`

## `DirectoryPrincipalDescriptor`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Auth/Model/DirectoryPrincipalDescriptor.cs) (line 17).

`public sealed record DirectoryPrincipalDescriptor`

- `public required string Id { get; init; }`
- `public required string DisplayName { get; init; }`
- `public DirectoryPrincipalKind Kind { get; init; }`
- `public IReadOnlyDictionary<string, string>? Claims { get; init; }`

## `DirectorySearchRequest`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Auth/Model/DirectorySearchRequest.cs) (line 15).

`public sealed record DirectorySearchRequest`

- `public string Term { get; init; }`
- `public DirectoryPrincipalKind? Kind { get; init; }`
- `public int PageSize { get; init; }`
- `public string? ContinuationToken { get; init; }`

## `DirectorySearchResult`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Auth/Model/DirectorySearchResult.cs) (line 13).

`public sealed record DirectorySearchResult`

- `public IReadOnlyList<DirectoryPrincipalDescriptor> Principals { get; init; }`
- `public string? ContinuationToken { get; init; }`
- `public bool Available { get; init; }`
- `public static DirectorySearchResult Unavailable { get; }`

Previous: [Orleans.Lattice.Api.Data](orleans-lattice-api-data.md). Next: [Orleans.Lattice.Api.Backup](orleans-lattice-api-backup.md). Contents: [Public API](../api.md).
