get archive license total

102 views
Skip to first unread message

Dan Casmas

unread,
Sep 9, 2022, 5:00:52 PM9/9/22
to GAM for Google Workspace
is there away to get the archive license total.

I see the number when I run gam print users licenses

Got X Licenses for Google Workspace Archived User

I need that X


Patrick Haley

unread,
Sep 11, 2022, 12:09:55 PM9/11/22
to GAM for Google Workspace
To add on Dan's question, I'd also like to get a license count for normal licenses so I can schedule an email when licenses are running low.

Ross Scroggs

unread,
Sep 11, 2022, 4:35:07 PM9/11/22
to google-ap...@googlegroups.com
gam print licenses countsonly
----
Ross Scroggs



--
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/06bd2493-c8f7-4315-ae69-f97986c4a5dcn%40googlegroups.com.

Dan Casmas

unread,
Sep 12, 2022, 9:12:37 AM9/12/22
to google-ap...@googlegroups.com, pat...@gjgardner.com
Patrick,
If you Powershell. But the numbers besides archive are in gam info domain.

$Domain = (& gam info domain).foreach{
    begin { $obj = @{} }
    process {
        $prop,$val = $_.Split(':').Trim()
        $obj[$prop] = $val
    }
    end {
        [pscustomobject]$obj
    }
}
$TotalMain = $Domain.'Workspace Enterprise Plus Licenses'.trim()
$TotalBasic = $Domain.'G Suite Basic Licenses'.trim()

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/AwLYKRJsttQ/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/33272C9E-1F07-42B8-8D5B-F76EB47B23CE%40gmail.com.


--
Dan Casmas
SONOS | Senior Systems Engineer
Dan.C...@Sonos.com Pronouns: he/him/his

Dan Casmas

unread,
Sep 12, 2022, 9:19:40 AM9/12/22
to google-ap...@googlegroups.com, pat...@gjgardner.com
gam print licenses countsonly is total assigned not total the tenant has, correct ?

Jay Lee

unread,
Sep 12, 2022, 9:21:07 AM9/12/22
to google-ap...@googlegroups.com, pat...@gjgardner.com
Correct. There's no API that exposes total seats or available seats so GAM can only report on assigned.

Jay

Reply all
Reply to author
Forward
0 new messages