Powershell AzureAD Get-AzureADUser

Nathan B 21 Reputation points
2021-07-12T14:33:21.603+00:00

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?

Thanks

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Answer accepted by question author
  1. Vasil Michev 123.7K Reputation points MVP Volunteer Moderator
    2021-07-12T14:53:21.527+00:00

    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

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.