Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update-GSUserLicense exception #304

Open
lucafabbri365 opened this issue Jul 8, 2020 · 0 comments
Open

Update-GSUserLicense exception #304

lucafabbri365 opened this issue Jul 8, 2020 · 0 comments

Comments

@lucafabbri365
Copy link

Hello,
while executing the cmdlet Update-GSUserLicense -User <User> -License G-Suite-Business I get the error below:

Update-GSUserLicense : Exception calling "Execute" with "0" argument(s): "Google.Apis.Requests.RequestError
skuId is required field [400]
Errors [
        Message[skuId is required field] Location[ - ] Reason[required] Domain[global]
        Message[productId is required field] Location[ - ] Reason[required] Domain[global]
        Message[userId is required field] Location[ - ] Reason[required] Domain[global]
]
"
At line:1 char:1
+ Update-GSUserLicense -User <User> -License G-Suite ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Update-GSUserLicense

I was trying to change G Suite user's license from G-Suite-Lite to G-Suite-Business (same product Google-Apps).
If I run Remove-GSUserLicense and then Set-GSUserLicense, it works.

Bye,
Luca

@lucafabbri365 lucafabbri365 changed the title Update-GSUserLicense error Update-GSUserLicense exception Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants