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
UPNstringThe 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
Remarks
The list contains the resource object identifiers of the agents.
Id
The unique identifier.
[JsonPropertyName("id")]
public string Id { get; set; }
Property Value
Type
The document type.
[JsonPropertyName("type")]
public string Type { get; set; }
Property Value
UPN
The user principal name.
[JsonPropertyName("upn")]
public string UPN { get; set; }
Property Value
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
Methods
GetId(string)
Generates a unique identifier string based on the specified user principal name (UPN).
public static string GetId(string upn)
Parameters
upnstringThe user principal name to use as the basis for the identifier.
Returns
- string
The requested identifier.