I am trying to filter users by the identity. For one criteria I have no problem:
https://graph.microsoft.com/v1.0/users?$filter=identities/any(c:c/issuer eq 'mytenant.onmicrosoft.com' and c/issuerAssignedId eq 'myuser')
But, I need to search for different prefix, that means for
myuser I would like to find the accounts:
I tried to do something like:
identities/any(c:c/issuer eq 'mytenant.onmicrosoft.com' and (c/issuerAssignedId eq 'myuser' or c/issuerAssignedId eq 'prefix01.myuser'))
But, the query was too complex for the Graph API :(.
Any suggestion beside of execute a request for each criteria?