Is there any way to do a wildcard search for people on department or jobTitle using the Graph API?

Mark van Dijk 1 Reputation point
2022-09-12T08:20:59.417+00:00

Using the $search parameter allows us to search for users using the Graph API on the /users endpoint.
It's possible to do a wildcard-search on the mail field and the displayName field but other fields automatically use a starts-with filter.

We want to do a wildcard-search for users on the jobTitle field and the department field.

Ideally, searching using $search=jobTitle:Manager should result in users with the jobTitle "HR Manager" as well as "Manager of things", but only the latter returns (due to starts-with).

Is there any (other) way to search for people on these fields using wildcard search?

Microsoft Security | Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. Bhanu Kiran 3,616 Reputation points
    2022-09-13T22:20:34.57+00:00

    Hello @Mark van Dijk ,

    As stated by @Vicky Kumar (Mindtree Consulting PVT LTD) , currently wildcard search feature is not supported in graph API.

    However, you can raise a feature request for the same using below link :
    https://feedbackportal.microsoft.com/feedback/forum/ebe2edae-97d1-ec11-a7b5-0022481f3c80

    Hope this helps.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.