Get-MgGroupMember seems to ignore the -PageSize argument #3325
Labels
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
type:bug
A broken experience
Describe the bug
When calling this function with
-PageSize 999
, it's pretty obvious that it is ignoring that and still using the default of100
. In my test case, I'm getting the membership of a group that contains about 3000 people. This should take 3 API calls, but instead takes 30. This is my inference based on the lag/delay of the response taking 30 seconds, vs. a few seconds.Expected behavior
Respect the
-PageSize
argument, perform better than 10 seconds for a single commandHow to reproduce
As you can see, the duration of this API call is nearly the same, regardless of page size.
SDK Version
2.17.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
Configuration
MacOS 15.4.1, though able to reproduce the lag with same module version on Windows 11.
Other information
I am unable to determine if this sluggishness is due to the module ignoring
-PageSize
or due to the Graph API just being too slow for this type of command. Like maybe-PageSize 999
still requires the server to internally fetch in chunks of 100, synchronously, then chunks those responses back to me in the chunks of 999?The text was updated successfully, but these errors were encountered: