Table of Contents

Class UserData

Namespace
FoundationaLLM.Common.Models.Configuration.Users
Assembly
FoundationaLLM.Common.dll

The user data object persisted in long-term storage.

public record UserData : IEquatable<UserData>
Inheritance
UserData
Implements
Inherited Members
Extension Methods

Constructors

UserData(string)

The user data object persisted in long-term storage.

public UserData(string UPN)

Parameters

UPN string

The user's account user principal name.

Properties

AllowedAgents

Gets or sets the list of agents the user has permission to use.

[JsonPropertyName("allowed_agents")]
public List<string> AllowedAgents { get; set; }

Property Value

List<string>

Remarks

The list contains the resource object identifiers of the agents.

Id

The unique identifier.

[JsonPropertyName("id")]
public string Id { get; set; }

Property Value

string

Type

The document type.

[JsonPropertyName("type")]
public string Type { get; set; }

Property Value

string

UPN

The user principal name.

[JsonPropertyName("upn")]
public string UPN { get; set; }

Property Value

string

UpdatedOn

Gets or sets the date and time when the user profile was last updated.

[JsonPropertyName("updated_on")]
public DateTimeOffset UpdatedOn { get; set; }

Property Value

DateTimeOffset

Methods

GetId(string)

Generates a unique identifier string based on the specified user principal name (UPN).

public static string GetId(string upn)

Parameters

upn string

The user principal name to use as the basis for the identifier.

Returns

string

The requested identifier.