<PackageReference Include="Microsoft.ApplicationInsights" Version="3.1.0" />

Microsoft.ApplicationInsights.Extensibility.Implementation.UserContext

public sealed class UserContext
Encapsulates information about a user using an application.
public string AccountId { get; set; }

Gets or sets the ID of an application-defined account associated with the user.

public string AuthenticatedUserId { get; set; }

Gets or sets the authenticated user id. Authenticated user id should be a persistent string that uniquely represents each authenticated user in the application or service.

public string Id { get; set; }

Gets or sets the ID of user accessing the application.

public string UserAgent { get; set; }

Gets or sets the UserAgent of an application-defined account associated with the user.