Tuesday, 2 June 2026

Bulk assign Google AI licences without the Admin Console

The following Google Apps Script is designed to automate the assigning of a Google AI licence e.g. "Google AI Pro for Education" in the Google Admin Console, for individual accounts/users via a Google Sheet. The code also adds them to a particular Google Group which was used in this context to control access to Google AI Studio.

You can refer to the Google product and SKU IDs webpage if you need to assign a different licence type. There is no initial checking to see if they have an existing licence or are already in the Group, instead a try/catch is used to collate any failed users.

Screenshot of code for bulk assigning AI licences via Google Apps Script
Snippet of code for bulk assigning AI licences

The Code

You will need to make sure you have enabled the below Advanced Google Services in the Script Editor:
  • AdminLicenseManager - v1
  • Admin SDK API - v1

Download

Bulk assign Google AI licences without the Admin Console download (please use 'File' > 'Make a copy' for your own version).


No comments:

Post a Comment