AI-generated Key Takeaways
- 
          
The Admin SDK Enterprise License Manager service in Apps Script allows domain admins to manage user licenses using the Admin SDK Enterprise License Manager API.
 - 
          
This is an advanced service that requires explicit enablement before it can be used.
 - 
          
Reference documentation and support information are available for detailed information and issue reporting.
 - 
          
Sample code is provided to demonstrate common tasks such as listing and inserting license assignments.
 
The Admin SDK Enterprise License Manager service allows you to use the Admin SDK Enterprise License Manager API in Apps Script. This API allows domain admins to assign, update, retrieve, and delete user licenses.
Reference
For detailed information on this service, see the reference documentation for the Admin SDK Enterprise License Manager API. Like all advanced services in Apps Script, the Admin SDK Enterprise License Manager service uses the same objects, methods, and parameters as the public API. For more information, see How method signatures are determined.
To report issues and find other support, see the Admin SDK Enterprise License Manager support guide.
Sample code
The sample code below uses version 1 of the API.
Get a list of license assignments for the domain
This sample logs the license assignments, including the product ID and the sku ID, for the users in the domain. Notice the use of page tokens to access the full list of results.
Insert a license assignment for a user
This sample demonstrates how to insert a license assignment for a user, for a given product ID and sku ID combination.