GetAzureADUser only showing 100 entries

Welcome Forums General PowerShell Q&A GetAzureADUser only showing 100 entries

This topic contains 6 replies, has 3 voices, and was last updated by

 
Participant
1 month, 4 weeks ago.

  • Author
    Posts
  • #114145

    Participant
    Points: 0
    Rank: Member

    When i run the following in PowerShell i only get 100 items is there a limit set that i can bypass or is there an issue with the setup?

    GetAzureADUser | Measure
    GetAzureADDevice | Measure

  • #114150

    Participant
    Points: 884
    Helping Hand
    Rank: Major Contributor

    From the documentation, try using -All parameter for Get-AZureADUSer

    https://docs.microsoft.com/en-us/powershell/module/azuread/get-azureaduser?view=azureadps-2.0

  • #114252

    Participant
    Points: 0
    Rank: Member

    I get the error:

    Get-AzureAdUser -All

    Missing an argument for parameter all. specify a parameter of type 'System.Nullable'1[System.Boolean]'

    • #114300
      Kaj

      Participant
      Points: 1
      Rank: Member

      Either one of the following will produce the desired results.

      Get-AzureADUser -All:$True | Measure-Object
      or
      Get-AzureADUser -All $True | Measure-Object
  • #114280

    Participant
    Points: 884
    Helping Hand
    Rank: Major Contributor

    Did you go through the link ? You can see the below syntax, -All requires a Boolean value to be passed. So pass $True to -All variable.

    #Syntax
    Get-AzureADUser
       [-All ]
       [-Top ]
       [-Filter ]
       []
    
  • #114427

    Participant
    Points: 0
    Rank: Member

    Thanks that works great.

  • #114438

    Participant
    Points: 884
    Helping Hand
    Rank: Major Contributor

    @Dynamik – please take your time to read the help documentation, that's gonna save your time a lot to be first time right.

You must be logged in to reply to this topic.