The B2C Azure AD has users with the same e-mail address like 'someuser@gmail.com'.
User name User type Source
someuser@gmail.com Member Azure Active Directory
someuser@gmail.com Member Microsoft Account
someuser@gmail.com Member Facebook
Note that what varies is the Source column. The email is the same.
Right now when I do a search like this:
GET https://graph.windows.net/myb2ctenant.onmicrosoft.com/users?api-version=1.6&$filter=signInNames/any(x:x/value%20eq%20%27someuser@gmail.com%27)
I get just one row: the one with source = Azure Active Directory but not the other 2 from external Identity Providers (IDPs).
How could I retrieve the 3 rows that match this User name\email address in one shot?
Once I get these 3 Users I'd like to delete them.
####### EDIT #######
From Chris Padget answer I could get the users that have Facebook as issuer like this:
Get-User $filter=userIdentities/any(x:x/issuer%20eq%20%27facebook.com%27)