public UserLicense.Types.LicenseAssignmentState LicenseAssignmentState { get; set; }
Output only. License assignment state of the user.
If the user is assigned with a license config, the user loggin will be
assigned with the license;
If the user's license assignment state is unassigned or unspecified, no
license config will be associated to the user;
Required. Immutable. The user principal of the User, could be email address
or other prinical identifier. This field is immutable. Admin assign
licenses based on the user principal.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Discovery Engine v1 API - Class UserLicense (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.UserLicense)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.UserLicense)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.UserLicense)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.UserLicense)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.UserLicense)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.UserLicense)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.UserLicense)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.UserLicense)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.UserLicense)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.UserLicense) \n\n public sealed class UserLicense : IMessage\u003cUserLicense\u003e, IEquatable\u003cUserLicense\u003e, IDeepCloneable\u003cUserLicense\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class UserLicense.\n\nUser License information assigned by the admin. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e UserLicense \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[UserLicense](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.UserLicense), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UserLicense](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.UserLicense), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[UserLicense](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.UserLicense), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DiscoveryEngine.V1](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1.dll\n\nConstructors\n------------\n\n### UserLicense()\n\n public UserLicense()\n\n### UserLicense(UserLicense)\n\n public UserLicense(UserLicense other)\n\nProperties\n----------\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. User created timestamp.\n\n### LastLoginTime\n\n public Timestamp LastLoginTime { get; set; }\n\nOutput only. User last logged in time.\nIf the user has not logged in yet, this field will be empty.\n\n### LicenseAssignmentState\n\n public UserLicense.Types.LicenseAssignmentState LicenseAssignmentState { get; set; }\n\nOutput only. License assignment state of the user.\nIf the user is assigned with a license config, the user loggin will be\nassigned with the license;\nIf the user's license assignment state is unassigned or unspecified, no\nlicense config will be associated to the user;\n\n### LicenseConfig\n\n public string LicenseConfig { get; set; }\n\nOptional. The full resource name of the Subscription(LicenseConfig)\nassigned to the user.\n\n### LicenseConfigAsLicenseConfigName\n\n public LicenseConfigName LicenseConfigAsLicenseConfigName { get; set; }\n\n[LicenseConfigName](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.LicenseConfigName)-typed view over the [LicenseConfig](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.UserLicense#Google_Cloud_DiscoveryEngine_V1_UserLicense_LicenseConfig) resource name property.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. User update timestamp.\n\n### UserPrincipal\n\n public string UserPrincipal { get; set; }\n\nRequired. Immutable. The user principal of the User, could be email address\nor other prinical identifier. This field is immutable. Admin assign\nlicenses based on the user principal.\n\n### UserProfile\n\n public string UserProfile { get; set; }\n\nOptional. The user profile.\nWe user user full name(First name + Last name) as user profile."]]