0

I'm trying to read people from the Office 365 sharepoint to build employee directory, using the Search REST API but it's listing Meeting rooms and Room Equipments also in the response. Even Graph API also return the same, I don't find any differentiation between Users and Groups in the result. Is there any way to differentiate the Office 365 Resources and Users? Below is the url i use

https://tenant.sharepoint.com/sites/intranet/_api/search/query?querytext='*'&SourceId='B09A7990-05EA-4AF9-81EF-EDFAB16C4E31'

2
  • Have you had a look at the properties returned by the Sharepoint search query tool? I often use the HiddenFromExchangeAdressList property to filter out unwanted stuff Commented Aug 24, 2018 at 17:24
  • Hi @KasperBoLarsen, can you please send me some sample query for that? Commented Aug 27, 2018 at 10:15

1 Answer 1

0

As far as I recall the excellent employee directory project includes that kind of filter, https://blog.hyperfish.com/employee-directory-in-office-365-and-sharepoint-?hs_amp=true And it is a super easy way to save a lot of time 😊

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.