Get-GSUserLicense does not return result unless -CheckAll is being specified
Description of Bug
If running Get-GSUserLicense -User [email protected] no response is given, even if the user has a license assigned.
If using Get-GSUserLicense -User [email protected] -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-GSUserLicenseagainst a user who has a license, won't get a license returned - Run
Get-GSUserLicense -CheckAllagainst 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):
- OS: Windows 10 1909
- PowerShell Version: Powershell 5.1 & Powershell 7.0.3
- PSGSuite Version: 2.36.4