Google Admin SDK Admin Sdk Licensing License Assignments API
The Admin Sdk Licensing License Assignments API from Google Admin SDK — 4 operation(s) for admin sdk licensing license assignments.
The Admin Sdk Licensing License Assignments API from Google Admin SDK — 4 operation(s) for admin sdk licensing license assignments.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/google-admin-sdk:google-admin-sdk-licensing-license-assignments-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.1.0
info:
title: Enterprise License Manager API LicenseAssignments API
version: v1
description: Generated from Google's published Discovery document for Enterprise License Manager API (licensing v1, revision
20261109). 7 operation(s).
contact:
name: Google
url: https://developers.google.com/
termsOfService: https://developers.google.com/terms
externalDocs:
url: https://developers.google.com/workspace/admin/licensing/
servers:
- url: https://licensing.googleapis.com
paths:
/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}:
patch:
operationId: licensing.licenseAssignments.patch
summary: Patch licenseAssignments
description: Reassign a user's product SKU with a different SKU in the same product. This method supports patch semantics.
parameters:
- name: productId
in: path
required: true
description: A product's unique identifier. For more information about products in this version of the API, see Products
and SKUs.
schema:
type: string
- name: skuId
in: path
required: true
description: A product SKU's unique identifier. For more information about available SKUs in this version of the API,
see Products and SKUs.
schema:
type: string
- name: userId
in: path
required: true
description: The user's current primary email address. If the user's email address changes, use the new email address
in your API requests. Since a `userId` is subject to change, do not use a `userId` value as a key for persistent
data. This key could break if the current user's email address changes. If the `userId` is suspended, the license
status changes.
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LicenseAssignment'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/LicenseAssignment'
4XX:
content: &id001
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id001
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/apps.licensing
- apiKey: []
tags:
- LicenseAssignments
delete:
operationId: licensing.licenseAssignments.delete
summary: Delete licenseAssignments
description: Revoke a license.
parameters:
- name: productId
in: path
required: true
description: A product's unique identifier. For more information about products in this version of the API, see Products
and SKUs.
schema:
type: string
- name: skuId
in: path
required: true
description: A product SKU's unique identifier. For more information about available SKUs in this version of the API,
see Products and SKUs.
schema:
type: string
- name: userId
in: path
required: true
description: The user's current primary email address. If the user's email address changes, use the new email address
in your API requests. Since a `userId` is subject to change, do not use a `userId` value as a key for persistent
data. This key could break if the current user's email address changes. If the `userId` is suspended, the license
status changes.
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Empty'
4XX:
content: &id002
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id002
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/apps.licensing
- apiKey: []
tags:
- LicenseAssignments
get:
operationId: licensing.licenseAssignments.get
summary: Get licenseAssignments
description: Get a specific user's license by product SKU.
parameters:
- name: productId
in: path
required: true
description: A product's unique identifier. For more information about products in this version of the API, see Products
and SKUs.
schema:
type: string
- name: skuId
in: path
required: true
description: A product SKU's unique identifier. For more information about available SKUs in this version of the API,
see Products and SKUs.
schema:
type: string
- name: userId
in: path
required: true
description: The user's current primary email address. If the user's email address changes, use the new email address
in your API requests. Since a `userId` is subject to change, do not use a `userId` value as a key for persistent
data. This key could break if the current user's email address changes. If the `userId` is suspended, the license
status changes.
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/LicenseAssignment'
4XX:
content: &id003
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id003
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/apps.licensing
- apiKey: []
tags:
- LicenseAssignments
put:
operationId: licensing.licenseAssignments.update
summary: Update licenseAssignments
description: Reassign a user's product SKU with a different SKU in the same product.
parameters:
- name: productId
in: path
required: true
description: A product's unique identifier. For more information about products in this version of the API, see Products
and SKUs.
schema:
type: string
- name: skuId
in: path
required: true
description: A product SKU's unique identifier. For more information about available SKUs in this version of the API,
see Products and SKUs.
schema:
type: string
- name: userId
in: path
required: true
description: The user's current primary email address. If the user's email address changes, use the new email address
in your API requests. Since a `userId` is subject to change, do not use a `userId` value as a key for persistent
data. This key could break if the current user's email address changes. If the `userId` is suspended, the license
status changes.
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LicenseAssignment'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/LicenseAssignment'
4XX:
content: &id004
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id004
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/apps.licensing
- apiKey: []
tags:
- LicenseAssignments
/apps/licensing/v1/product/{productId}/sku/{skuId}/users:
get:
operationId: licensing.licenseAssignments.listForProductAndSku
summary: List for product and sku licenseAssignments
description: List all users assigned licenses for a specific product SKU.
parameters:
- name: productId
in: path
required: true
description: A product's unique identifier. For more information about products in this version of the API, see Products
and SKUs.
schema:
type: string
- name: skuId
in: path
required: true
description: A product SKU's unique identifier. For more information about available SKUs in this version of the API,
see Products and SKUs.
schema:
type: string
- name: customerId
in: query
required: true
description: The customer's unique ID as defined in the Admin console, such as `C00000000`. If the customer is suspended,
the server returns an error.
schema:
type: string
- name: maxResults
in: query
required: false
description: The `maxResults` query string determines how many entries are returned on each page of a large response.
This is an optional parameter. The value must be a positive number.
schema:
format: uint32
type: integer
minimum: 1
maximum: 1000
default: '100'
- name: pageToken
in: query
required: false
description: Token to fetch the next page of data. The `maxResults` query string is related to the `pageToken` since
`maxResults` determines how many entries are returned on each page. This is an optional query string. If not specified,
the server returns the first page.
schema:
default: ''
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/LicenseAssignmentList'
4XX:
content: &id005
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id005
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/apps.licensing
- apiKey: []
tags:
- LicenseAssignments
/apps/licensing/v1/product/{productId}/sku/{skuId}/user:
post:
operationId: licensing.licenseAssignments.insert
summary: Insert licenseAssignments
description: Assign a license.
parameters:
- name: productId
in: path
required: true
description: A product's unique identifier. For more information about products in this version of the API, see Products
and SKUs.
schema:
type: string
- name: skuId
in: path
required: true
description: A product SKU's unique identifier. For more information about available SKUs in this version of the API,
see Products and SKUs.
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LicenseAssignmentInsert'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/LicenseAssignment'
4XX:
content: &id006
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id006
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/apps.licensing
- apiKey: []
tags:
- LicenseAssignments
/apps/licensing/v1/product/{productId}/users:
get:
operationId: licensing.licenseAssignments.listForProduct
summary: List for product licenseAssignments
description: List all users assigned licenses for a specific product SKU.
parameters:
- name: productId
in: path
required: true
description: A product's unique identifier. For more information about products in this version of the API, see Products
and SKUs.
schema:
type: string
- name: customerId
in: query
required: true
description: The customer's unique ID as defined in the Admin console, such as `C00000000`. If the customer is suspended,
the server returns an error.
schema:
type: string
- name: maxResults
in: query
required: false
description: The `maxResults` query string determines how many entries are returned on each page of a large response.
This is an optional parameter. The value must be a positive number.
schema:
default: '100'
type: integer
minimum: 1
maximum: 1000
format: uint32
- name: pageToken
in: query
required: false
description: Token to fetch the next page of data. The `maxResults` query string is related to the `pageToken` since
`maxResults` determines how many entries are returned on each page. This is an optional query string. If not specified,
the server returns the first page.
schema:
type: string
default: ''
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/LicenseAssignmentList'
4XX:
content: &id007
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id007
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/apps.licensing
- apiKey: []
tags:
- LicenseAssignments
components:
securitySchemes:
apiKey:
type: apiKey
in: query
name: key
description: API key; accepted by methods that do not need user data.
oauth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://accounts.google.com/o/oauth2/auth
tokenUrl: https://oauth2.googleapis.com/token
scopes:
https://www.googleapis.com/auth/apps.licensing: View and manage Google Workspace licenses for your domain
schemas:
Empty:
type: object
properties: {}
description: 'A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs.
A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc
Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }'
GoogleRpcError:
type: object
description: The error envelope every Google API returns.
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
status:
type: string
details:
type: array
items:
type: object
LicenseAssignment:
type: object
description: Representation of a license assignment.
properties:
skuName:
description: Display Name of the sku of the product.
type: string
productId:
type: string
description: A product's unique identifier. For more information about products in this version of the API, see
Product and SKU IDs.
kind:
default: licensing#licenseAssignment
description: Identifies the resource as a LicenseAssignment, which is `licensing#licenseAssignment`.
type: string
skuId:
description: A product SKU's unique identifier. For more information about available SKUs in this version of the
API, see Products and SKUs.
type: string
etags:
type: string
description: ETag of the resource.
userId:
type: string
description: The user's current primary email address. If the user's email address changes, use the new email address
in your API requests. Since a `userId` is subject to change, do not use a `userId` value as a key for persistent
data. This key could break if the current user's email address changes. If the `userId` is suspended, the license
status changes.
selfLink:
description: Link to this page.
type: string
productName:
type: string
description: Display Name of the product.
LicenseAssignmentInsert:
type: object
description: Representation of a license assignment.
properties:
userId:
description: Email id of the user
type: string
LicenseAssignmentList:
type: object
properties:
nextPageToken:
type: string
description: The token that you must submit in a subsequent request to retrieve additional license results matching
your query parameters. The `maxResults` query string is related to the `nextPageToken` since `maxResults` determines
how many entries are returned on each next page.
etag:
type: string
description: ETag of the resource.
items:
type: array
items:
$ref: '#/components/schemas/LicenseAssignment'
description: The LicenseAssignments in this page of results.
kind:
type: string
default: licensing#licenseAssignmentList
description: Identifies the resource as a collection of LicenseAssignments.
x-provenance:
method: harvested
publisher: Google
source: https://licensing.googleapis.com/$discovery/rest?version=v1
note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261109)