SCRT-HQ / PSGSuite

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
https://psgsuite.io/
Apache License 2.0
234 stars 68 forks source link

Get-GSUserLicense in some cases return null #346

Open pompushko opened 3 years ago

pompushko commented 3 years ago

$AccountGSuiteLicenses = Get-GSUserLicense -User (get-aduser $UserAccount.SamAccountName -property EmailAddress).EmailAddress -CheckAll

Does it have any timeouts? This part of code in big script. Some times it return null or empty ;( Any ideas? Thank you.

phatmandrake commented 3 years ago

Curious what the -verbose output says. when you run the command by itself from the console?