Google Workspace Marketplace API . userLicense

Instance Methods

close()

Close httplib2 connections.

get(applicationId, userId, x__xgafv=None)

Gets the user's licensing status for their permission to use a given app.

Method Details

close()
Close httplib2 connections.
get(applicationId, userId, x__xgafv=None)
Gets the user's licensing status for their permission to use a given app.

Args:
  applicationId: string, Application Id (required)
  userId: string, User Id (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
  "applicationId": "A String", # The ID of the application corresponding to the license query.
  "customerId": "A String", # The domain name of the user.
  "editionId": "A String", # (Deprecated)
  "enabled": True or False, # The domain administrator has activated the application for this domain.
  "id": "A String", # The ID of user license.
  "kind": "A String", # The type of API resource. This is always appsmarket#userLicense.
  "state": "A String", # The user's licensing status. One of: - `ACTIVE`: The user has a valid license and should be permitted to use the application. - `UNLICENSED`: The administrator of this user's domain never assigned a seat for the application to this user. - `EXPIRED`: The administrator assigned a seat to this user, but the license is expired.
  "userId": "A String", # The email address of the user.
}