filter on mobilePhone in user information
https://graph.microsoft.com/v1.0/users?$filter=mobilePhone eq '#some value#'
filtering on mobilePhone is tricky because it is a “free-text” field, and there is no format guarantee.
It can start with the country code, it may not.
It can be separated by parenthesis, hyphens or dots, or not. Totally depends on the user input.
However, this functionality is currently beta, thanks to the new advanced query capabilities for Directory Objects (see announcement blog post https://aka.ms/CountFilterMSGraphAAD )
Here is the query you can try today by setting:
1) Beta Endpoint
2) ConsistencyLevel = eventual header
3) $count=true parameter
Example: find all users with mobilePhone starting with “+1” (note: + character is urlencoded)
Works great now! Thank you!
Marco Parenzan commented
https://graph.microsoft.com/v1.0/users?$filter=mobilePhone eq '+91 8283782381'
"message": "Unsupported or invalid query filter clause specified for property 'mobilePhone' of resource 'User'.",
add support filtering on mobilePhone