PSGSuite icon indicating copy to clipboard operation
PSGSuite copied to clipboard

Get-GSUserLicense does not return result unless -CheckAll is being specified

Open jgeron-suhsd opened this issue 5 years ago • 0 comments

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:

  1. Run Get-GSUserLicense against a user who has a license, won't get a license returned
  2. 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):

  • OS: Windows 10 1909
  • PowerShell Version: Powershell 5.1 & Powershell 7.0.3
  • PSGSuite Version: 2.36.4

jgeron-suhsd avatar Jul 23 '20 16:07 jgeron-suhsd