Autocomplete from Azure AD

0
Hi! For the application I'm working on I need to implement autocomplete that uses list of users from Azure AD. Has anyone done that? What API needs to be used? Any suggestions?
asked
1 answers
2

Hi Elina,

You can use a microflow with auto-complete dropdown. In the microflow you can pass the search string into this API call: 

https://graph.microsoft.com/v1.0/users?$count=true&$search="displayName:room"&$filter=endsWith(mail,'microsoft.com')&$orderBy=displayName&$select=id,displayName,mail

The API call is searching for users where the displayname contains “room” and the email address ends with ‘microsoft.com’.

 

The Microsoft Graph Explorer is a great way to test out the API in your browser.
Graph Explorer | Try Microsoft Graph APIs - Microsoft Graph

answered