Licenses
Product Codes <SKUID>
Google Workspace for Education Standard | 1010310005
Google Workspace for Education Standard (Staff) | 1010310006
Google Workspace for Education Plus | 1010310008
Google Workspace for Education Plus (Staff) |1010310009
Add
User
gam user <User Email Address> add licenses <SKUID>
Non-Suspended Users in OU
gam print users query "orgUnitPath='</Path/To/OU>' isSuspended=false" | gam csv - gam user ~primaryEmail add license <SKUID>
Delete
User
gam user <User Email Address> delete license <SKUID>
Suspended Users in OU
gam print users query "orgUnitPath='/<Path/to/top/OU>' isSuspended=true" | gam csv - gam user ~primaryEmail delete license <SKUID>
Print
All Licenses
This will print the licenses as a separate column with users.
gam print users licenses todrive
Specific License
The <SKUID> can be found here https://developers.google.com/admin-sdk/licensing/v1/how-tos/products or use the command above.
gam print licenses sku <SKUID> todrive
Multiple Licenses
gam print licenses sku <SKUID>,<SKUID> todrive
User
gam user <User Email Address> print licenses todrive