Powershell AzureAD Get-AzureADUser

Nathan B 21 Reputation points

Im trying to use Get-AzureADUser to get a list of users that dont and do have alternate email set.

The API endpoint for this is

https://graph.microsoft.com/v1.0/users?$count=true&$filter=otherMails/$count eq 0

How do I do this in Powershell?


Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,451 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 95,096 Reputation points MVP

    This query only works with ConsistencyLevel=eventual, and I'm not aware of any way to pass this via the Azure AD module. Use client-side filtering instead?

0 additional answers

Sort by: Most helpful