Skip to content

Get-PnPAzureADUser #1713

@McFarTech

Description

@McFarTech

Hi Team.

I am looking to retrieve all ADUser using the Get-PnPAzureADUser command.

So Get-PnPAzureADUserdoes retrieve all users but using the command below only retrieves a small number of users.

Get-PnPAzureADUser | Where-Object {$_.officelocation -eq "ABC"}

Now i see there is this -StartIndex 1 -EndIndex 1000 but from the reading i was doing it seems to be a random who it pulls in.

Can anyone advise how i can pull in all account and be 100 sure that its all accounts and not a random selection.

Many thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions