Hello,
as we are unable to create contacts and unable to set the mail property of a user (read only) we are forced to use the User.otherMails Collection to store user's emails and alternate emails.
So in effect we need to be able to find a user by otherEmail via the Graph API. The Problem is however that althought the OData Endpoint is V3 it does not seem to support the ANY operator:
https://graph.windows.net/GraphDir1.OnMicrosoft.com/users?$filter=otherMails/any(o:o eq 'edwu@microsoft.com' )
{"Status Code" : "BadRequest","Description" : "The remote server returned an error: (400) Bad Request.","Response" : "{"odata.error":{"code":"Request_UnsupportedQuery","message":{"lang":"en","value":"Unsupported or invalid query filter clause specified for property 'otherMails' of resource 'User'."}}}" }
Is there any way to filter users by otherMail property or any other useful way to use this system for storing identities with multiple emails and actually searching for them later?
Tim