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

pagesize cannot be larger than 100 #377

Open Buenno opened 1 year ago

Buenno commented 1 year ago

Get-GSMobileDevice returns a Google API error as the default pagesize value is outside of the permitted range.

Get-GSMobileDevice: Exception calling "Execute" with "0" argument(s): "Google.Apis.Requests.RequestError Invalid value '1000'. Values must be within the range: [value: 1 , value: 100 ] [400]

I have reduced the default value from 1000 to 100.

stephecannon commented 10 months ago

I also see this error message and can confirm that @Buenno's solution resolves the issue.