Method: projects.locations.userStores.userLicenses.list

Lists the User Licenses.

HTTP request

GET https://discoveryengine.googleapis.com/v1beta/{parent=projects/*/locations/*/userStores/*}/userLicenses

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent UserStore resource name, format: projects/{project}/locations/{location}/userStores/{userStoreId}.

Query parameters

Parameters
pageSize

integer

Optional. Requested page size. Server may return fewer items than requested. If unspecified, defaults to 10. The maximum value is 50; values above 50 will be coerced to 50.

If this field is negative, an INVALID_ARGUMENT error is returned.

pageToken

string

Optional. A page token, received from a previous userLicenses.list call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to userLicenses.list must match the call that provided the page token.

orderBy

string

Optional. The order in which the UserLicenses are listed. The value must be a comma-separated list of fields. Default sorting order is ascending. To specify descending order for a field, append a " desc" suffix. Redundant space characters in the syntax are insignificant.

Supported fields:

  • licenseAssignmentState
  • userPrincipal
  • userProfile
  • last_login_date
  • updateTime

If not set, the default ordering is by userPrincipal.

Examples:

  • userPrincipal desc to order by userPrincipal in descending order.
  • licenseAssignmentState to order by licenseAssignmentState in ascending order.
  • last_login_date desc to order by last_login_date in descending order.
  • updateTime desc to order by updateTime in descending order.
  • last_login_date desc, userPrincipal to order by last_login_date in descending order and then by userPrincipal in ascending order.

Request body

The request body must be empty.

Response body

Response message for UserLicenseService.ListUserLicenses.

If successful, the response body contains data with the following structure:

JSON representation
{
  "userLicenses": [
    {
      object (UserLicense)
    }
  ],
  "nextPageToken": string
}
Fields
userLicenses[]

object (UserLicense)

All the customer's UserLicenses.

nextPageToken

string

A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/discoveryengine.readwrite

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • discoveryengine.userStores.listUserLicenses

For more information, see the IAM documentation.