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
235 stars 67 forks source link

*-GSUserLicense "License" Parameter Validation does not validate against "Google-Apps-*" SKU ID #322

Open phatmandrake opened 4 years ago

phatmandrake commented 4 years ago

Describe the bug

License with a Google-Apps-* SKU ID are not apart of the parameter validation set for the "License" parameter. Previously it did, I do not know when this behavior changed.

To Reproduce

Use any -GSUserlicense cmdlet and `Google-Apps` will not exist as a valid parameter in the list.

Expected behavior

That SKU Id from https://developers.google.com/admin-sdk/licensing/v1/how-tos/products would be valid for use.

Screenshots image

Environment (please complete the following information):

Additional context

This may not be a bug, but it was an unanticipated behavior change that I didn't realize was failing because we are using OU based auto-assignments from the billing page as well.

Edit:

It looks like they now map to any modified versions of the SKU Name e.g "G-Suite-Business"

image

YuriySamorodov commented 1 year ago

Have the same issue!