Assign License to User

Assign a license to Google Workspace user.

For more information on assigning, removing, and reassigning licenses, see Google's licensing documentation page.

Input

Field Definition Type Required

Product

Licenses

List of product licenses (or a single license) that you want to assign to the user. See Google Product and SKU IDs

For example:

Copy
[
{
"skuid": "1010020028",
"productid": "Google-Apps"
}
]

List of Objects

FALSE

User

Primary Emails

Email address of the user to whom you want to assign licenses.

Text

TRUE

If you try to assign an already-assigned license to a user, the action card will return an error:

  • A 503 status error code will be thrown if the license you are trying to assign is automatically assigned for new users.

  • A 412 status error code will be thrown if the license you are trying to assign is not automatically assigned to new users but is currently assigned to the user who is specified on the card.

Note that if the Cloud Identity Free license is assigned by default for a Google Workspace account, then the license will be automatically assigned to all new users.

Output

Field Definition Type

License Name

Name of the assigned license.

Text

Status Code

Result of the operation. The connector returns an HTTP status code that indicates whether the action taken by the card succeeded or failed. For example:

  • A 201 Created status code indicates success where a new resource was created.
  • A 403 Forbidden error indicates that the HTTP request wasn't processed because the necessary permissions were missing.

For a full list of possible status codes, see HTTP status codes.

Number

Related topics

Google Workspace Admin connector

Workflow elements

Google Workspace API documentation