Powershell module for Google / G Suite API calls wrapped in handy functions. Authentication is established using a service account via P12 key to negate the consent popup and allow for greater handsoff automation capabilities
Description of Bug
If running Get-GSUserLicense -User user@domain.org no response is given, even if the user has a license assigned.
If using Get-GSUserLicense -User user@domain.org -CheckAll I'll get a response.
When running the commands with -Verbose I can see that without -CheckAll, it's stopping after it evaluates "G-Suite-Enterprise-for-Education". If I run with -CheckAll, it will give me the license info and continue on evaluating the rest of the licenses.
I can't say if this happens on other license types, but it does on Enterprise for Education and Enterprise for Education Student.
To Reproduce
Steps to reproduce the behavior:
Run Get-GSUserLicense against a user who has a license, won't get a license returned
Run Get-GSUserLicense -CheckAll against same user and you'll get a license.
Expected behavior
Command should return an assigned license object with license information
Environment (please complete the following information):
Description of Bug If running
Get-GSUserLicense -User user@domain.org
no response is given, even if the user has a license assigned.If using
Get-GSUserLicense -User user@domain.org -CheckAll
I'll get a response.When running the commands with
-Verbose
I can see that without -CheckAll, it's stopping after it evaluates "G-Suite-Enterprise-for-Education". If I run with -CheckAll, it will give me the license info and continue on evaluating the rest of the licenses.I can't say if this happens on other license types, but it does on Enterprise for Education and Enterprise for Education Student.
To Reproduce Steps to reproduce the behavior:
Get-GSUserLicense
against a user who has a license, won't get a license returnedGet-GSUserLicense -CheckAll
against same user and you'll get a license.Expected behavior Command should return an assigned license object with license information
Environment (please complete the following information):