I am working on an app that needs to query Azure AD. The query is working on some fields but on some fields like mobile number it's not working.
Query is working when filtering with name
var searchResults = await userCollection.Where(user =>
(user.UserPrincipalName.StartsWith(searchString) ||
user.DisplayName.StartsWith(searchString) ||
user.GivenName.StartsWith(searchString) ||
user.Surname.StartsWith(searchString) ||
user.Mail.StartsWith(searchString)) && user.AccountEnabled == true).ExecuteAsync();
but with mobile number and other fields it throws exception
var searchResults = await userCollection
.Where(x => x.Mobile == "+63 922 3965 021").ExecuteAsync();
Here is the exception "Unsupported or invalid query filter clause specified for property 'mobile' of resource 'User'."