Table of Contents

Interface IRoleResolver

Namespace
JD.AI.Core.Governance
Assembly
JD.AI.Core.dll

Resolves the role and group memberships for the current user context.

public interface IRoleResolver

Methods

ResolveGroups(string?)

Returns the group memberships for the given user ID.

IReadOnlyList<string> ResolveGroups(string? userId)

Parameters

userId string

Returns

IReadOnlyList<string>

ResolveRole(string?)

Returns the primary role name for the given user ID, or null if none.

string? ResolveRole(string? userId)

Parameters

userId string

Returns

string