PSGSuite icon indicating copy to clipboard operation
PSGSuite copied to clipboard

G Suite users with no license

Open lucafabbri365 opened this issue 4 years ago • 3 comments

Hello, is there a way to retrieve the list of users without an associated G Suite license (without cycling rows with Get-GSUser & Get-GSUserLicense cmdlets) ?

Thank you, Luca

lucafabbri365 avatar May 28 '20 16:05 lucafabbri365

heyo @lucafabbri365 - Good question! My first though was to go through that same approach you're thinking, will need to check if a direct query is possible but I haven't seen that offhand.

scrthq avatar May 29 '20 01:05 scrthq

Hello @scrthq, thank you for your reply. I also have another question regarding G Suite licenses: is there a way to retrieve all available/applicable licenses (ProductId, ProductName, SkuId, SkuName, total, total assigned, expiration date, etc. - the same information appearing in G Suite console > Billing ) ?

Thank you, Luca

lucafabbri365 avatar May 29 '20 08:05 lucafabbri365

Hey @lucafabbri365 - I'm not aware of a way to pull the available/assignable licenses per an individual G Suite subscription via API. Maybe through the Reseller API, but PSGSuite doesn't use that currently. If you find any documentation around it, I'd be happy to add it if it's doable!

scrthq avatar Jun 30 '20 06:06 scrthq