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'