When you getting all users of the Entra ID using Get-MgUser through Microsoft Graph.
The output shows exactly 100 objects. You expect more or all entries. How can we get the missing objects?
Solution
As the docs show, you can use either switch -All to the Get-MgUser cmdlet, which will list all pages, or use the -PageSize parameter where you can set the page size of results.
Apparently, the default pagesize is set to 100, so with PageSize you can do:
Get-MgUser -PageSize 300 # or [int32]::MaxValue
Easier of course is to use the -All switch to get all objects.
Get-MgUser -All
ADVERTISEMENT
5/5 - (2 votes)