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

ADD Get-EntraUser -PageSize parameter #888

Open
HCRitter opened this issue Jul 5, 2024 · 4 comments
Open

ADD Get-EntraUser -PageSize parameter #888

HCRitter opened this issue Jul 5, 2024 · 4 comments

Comments

@HCRitter
Copy link
Contributor

HCRitter commented Jul 5, 2024

Describe the feature

Add the "Pagesize" parameter to increase the result limit for pagination, for Graph is 999 elements

How will this feature enhance your project and further the project’s overall goals? Who will benefit from this feature (i.e. all users; the project team)?

This change would make retrieving all user objects much faster, and throttling should not be a big deal if your tenant has 10k+ users.
So this would be beneficial for all users.

Describe alternatives you've considered
Still use Get-MGuser -Pagesize 999 -all

Additional context
None

@snehalkotwal
Copy link
Collaborator

@HCRitter Thanks for raising the issue, We are looking into it.

@Licantrop0
Copy link
Member

related to microsoftgraph/msgraph-sdk-powershell#2769 ?

@HCRitter
Copy link
Contributor Author

It's kinda related, as -all should be by default 999 in page size. But also for -top the user should be able to specify the -pagesize parameter, to fit the needs :)

@Licantrop0
Copy link
Member

yeah, theoretically they should be aliases... @peombwa can you please chime in and explain why they are different?
You wrote this PR: microsoftgraph/msgraph-sdk-powershell#1541

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

5 participants