Feedback by UserVoice

I suggest you ...

Allow filtering users by officeLocation

While filtering works for some attributes like department it doesn't work for officeLocation, which sadly I need for my use case.

GET https://graph.microsoft.com/beta/users?$filter=officeLocation eq 'Gaithersburg, MD'

Returns:
{
"error": {
"code": "Request_UnsupportedQuery",
"message": "Unsupported or invalid query filter clause specified for property 'officeLocation' of resource 'User'.",
"innerError": {
"request-id": "641beedd-4df5-4b97-b6b5-4f574c382d08",
"date": "2017-07-26T18:32:39"
}
}
}

40 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Marco Brieden shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    2 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • REZA commented  ·   ·  Flag as inappropriate

        Fail to understand why every other property is query able except officeLocation.

      • Kuzma Fesenko commented  ·   ·  Flag as inappropriate

        I too would find it incredibly useful to filter by officeLocation. I can't imagine this would be too challenging to implement.

      Feedback and Knowledge Base