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

Microsoft.ApplicationInsights.Extensibility.Implementation.UserContext

public sealed class UserContext
Encapsulates information about a user using an application.
namespace Microsoft.ApplicationInsights.Extensibility.Implementation { public sealed class UserContext { public string Id { get; set; } public string AccountId { get; set; } public string UserAgent { get; set; } public string AuthenticatedUserId { get; set; } } }