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

Cannot update a multivalued custom schema #340

Open hematic opened 3 years ago

hematic commented 3 years ago

Describe the bug When attempting to update a custom schema attribute i receive the error: Update-GSUser : Exception calling "Execute" with "0" argument(s): "Google.Apis.Requests.RequestError Invalid Input: custom_schema [400] Errors [ Message[Invalid Input: custom_schema] Location[ - ] Reason[invalid] Domain[global] ] "

To Reproduce Steps to reproduce the behavior: Have tried to follow the documentation here to create a custom schema multiple ways.

image image image Attempts return the same error.

Expected behavior Its possible I simply don't understand the proper way to update this particular value but i have been able to update other values just fine. If the documentation showed a picture of the custom schema it was updating it could be helpful at figuring out the proper way to format the hashtable for the user reading the doc.

Environment (please complete the following information):

Additional context Thanks in advance!

jlyle29 commented 3 years ago

I have a similar issue, I am trying the same format of commands as @hematic with the same results. I don't get a error it simple appears to remove the whole category from the user.

Seems to only affect multi valued variables.

My Powershell is a little rusty so it could be my understanding.

Windows Server 2012 R2 powershell 5.1.14409.1005 PSGSuite 2.36.4