check remaining licenses

615 views
Skip to first unread message

ian kelly

unread,
Jul 12, 2022, 5:57:52 PM7/12/22
to GAM for Google Workspace
Hello, I am very new to GAM, I am trying refactor a script at work that creates users, it's a enterprise version of GWorkspace, however I'd like it to check if we actually have available licenses before it goes ahead and tries to create the user, which commands should I be looking at?

or do I need to do something more sophisticated like Try, Catch?

many thanks

Ian

Ross Scroggs

unread,
Jul 12, 2022, 6:18:06 PM7/12/22
to google-ap...@googlegroups.com
Ian,

Do: gam info domain

This will give you some license info.

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/9b4c95f1-cb77-43b5-8b88-182ff1be9e7bn%40googlegroups.com.


--

ian kelly

unread,
Jul 13, 2022, 8:08:49 AM7/13/22
to google-ap...@googlegroups.com
Thank you Ross, I can see the number of users, which is a good start, I was hoping to see unassigned license’s so I could check I had one available in my script 

Is that data available 

Many thanks 

Ian 

You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/mpuH41OIq_w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAJkvRS-hC3%3DM5cSMP9Ghufza87OQ12BCkErxvo4g--vRQLNifQ%40mail.gmail.com.

Ross Scroggs

unread,
Jul 13, 2022, 11:17:26 AM7/13/22
to google-ap...@googlegroups.com
Ian,

Not directly.

User counts as of 2022-07-11:

  Workspace Enterprise Plus Licenses: 3

  Workspace Enterprise Plus Users: 3


Is Licenses-Users the number of available licenses?


Ross




--
Reply all
Reply to author
Forward
0 new messages