Skip to main content

user_licenses

Creates, updates, deletes, gets or lists a user_licenses resource.

Overview

Nameuser_licenses
TypeResource
Idgoogle.discoveryengine.user_licenses

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
createTimestring (google-datetime)Output only. User created timestamp.
lastLoginTimestring (google-datetime)Output only. User last logged in time. If the user has not logged in yet, this field will be empty.
licenseAssignmentStatestringOutput only. License assignment state of the user. If the user is assigned with a license config, the user login 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;
licenseConfigstringOptional. The full resource name of the Subscription(LicenseConfig) assigned to the user.
updateTimestring (google-datetime)Output only. User update timestamp.
userPrincipalstringRequired. 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.
userProfilestringOptional. The user profile. We user user full name(First name + Last name) as user profile.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_user_stores_user_licenses_listselectprojectsId, locationsId, userStoresIdpageSize, pageToken, filterLists the User Licenses.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
projectsIdstring
userStoresIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Lists the User Licenses.

SELECT
createTime,
lastLoginTime,
licenseAssignmentState,
licenseConfig,
updateTime,
userPrincipal,
userProfile
FROM google.discoveryengine.user_licenses
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND userStoresId = '{{ userStoresId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}';