I'm using the Graph API via HTTP. I need to filter on all users that have a signInType of "emailAddress".
I'm using this select:
https://graph.microsoft.com/v1.0/users?$select=displayName,accountEnabled,id,identities
which returns:
"value":
[
{
"displayName": "Alice User",
"accountEnabled": true,
"id": "abcdef01-0aac-8890-5454-1234567890ab",
"identities": [
{
"signInType": "emailAddress",
"issuer": "mytenant.onmicrosoft.com",
"issuerAssignedId": "[email protected]"
},
{
"signInType": "userPrincipalName",
"issuer": "mytenant.onmicrosoft.com",
"issuerAssignedId": "[email protected]"
}
]
},
{
"displayName": "George User",
"accountEnabled": true,
"id": "12345678-0bb2-430b-8208-abcdefabcdef",
"identities": [
{
"signInType": "emailAddress",
"issuer": "mytenant.onmicrosoft.com",
"issuerAssignedId": "[email protected]"
},
{
"signInType": "userPrincipalName",
"issuer": "mytenant.onmicrosoft.com",
"issuerAssignedId": "[email protected]"
}
]
},
...
]
When I add this filter to the query, I'm getting an error:
https://graph.microsoft.com/v1.0/users?$select=displayName,accountEnabled,id,identities&$filter=identities/any(id:id/signInType eq 'emailAddress')
{
"error": {
"code": "Request_BadRequest",
"message": "Unsupported property or property value or combination of property and operation occured",
"innerError": {
"date": "2025-04-17T20:00:20",
"request-id": "841c2d30-b453-4b2c-972d-fff6e26ac60d",
"client-request-id": "841c2d30-b453-4b2c-972d-fff6e26ac60d"
}
}
}
I have tried various combinations of the filter, all with no success. I believe it's because identities is itself a collection.
This SO post also appears to be filtering on identities in the same manner (the OP states their first approach works): Microsoft Graph API: oddity with searching a user by identity
However, it's not working for me so I must be doing something wrong.
How can I filter on the nested identities collection so that I can query just users that have a "signInType": "emailAddress"?
Thanks.




identitiesand sub propertysignInTypebased onemailAddressis only supported forsignInType: emailAddressandsignInType: userNamebut it requires validissuerandissuerAssignedId. For more details Refer this MsDocidentities: "signInType": "emailAddress"? Can I post that in detailed answer? @realmikepissuerandissuerAssignedIdmust be specified in the query?issuerandissuerAssignedIdmust be specifiedGET https://graph.microsoft.com/v1.0/users?$filter=identities/any(c:c/issuerAssignedId eq '<issuerAssingedId>' and c/issuer eq '<issuer>')Response