GCP.Licensing reference
LicenseAssignment
Section titled “LicenseAssignment”Source:
src/GCP/Licensing/LicenseAssignment.ts
A Google Workspace Enterprise License Manager assignment.
Assignments have no labels or description, so Alchemy cannot stamp
ownership. list / nuke only returns rows when
GOOGLE_LICENSE_CUSTOMER_ID (or GOOGLE_WORKSPACE_CUSTOMER_ID),
GOOGLE_LICENSE_PRODUCT_ID, and GOOGLE_LICENSE_USER_ID are set, so
a Workspace domain is never bulk-revoked. Product and user are
identity — changing either replaces the assignment. SKU reassignment
within the same product updates in place via licenseAssignments.patch.
Creating an assignment requires the
https://www.googleapis.com/auth/apps.licensing scope and a
Workspace admin on the customer.
LicenseAssignment: Creating an Assignment
Section titled “LicenseAssignment: Creating an Assignment”const seat = yield* GCP.Licensing.LicenseAssignment("Ada", { productId: "Google-Apps", skuId: "1010020027", userId: "ada@example.com", customerId: "my_customer",});LicenseAssignment: Reassigning a SKU
Section titled “LicenseAssignment: Reassigning a SKU”const seat = yield* GCP.Licensing.LicenseAssignment("Ada", { productId: "Google-Apps", skuId: "1010020028", userId: "ada@example.com", customerId: "my_customer",});