Search code examples
azure-active-directorymicrosoft-graph-apimicrosoft-graph-sdks

Is Issuer both required and ignored when querying users by Identity?


This document says

Note: When filtering on the identities property, you must supply both issuer and issuerAssignedId.

However this query:

string email = "me@mydomain.com";

IGraphServiceUsersCollectionPage users = await client.Users.Request()
            .Select(x => new { x.Id, x.Mail, x.OtherMails, x.Identities })
            .Filter($"identities/any(ids:ids/issuerassignedid eq '{email}' and ids/issuer eq 'x')")
            .GetAsync();
            

            

Returns a single user record:

issuerAssignedId: me@mydomain.com
issuer: mydomain.onmicrosoft.com

Question: Why is ids/issuer both required and ignored?


Solution

  • I tried to reproduce this in my setup and I also got the same response from SDK and graph API. I have filed a Bug for this and kindly refer to this bug link