What is the suggested "way" or best option(s) for filtering out non-human accounts from /users Graph API endpoint? givenName ne null? surname ne null?
What is the suggested "way" or best option(s) for filtering out non-human accounts from /users Graph API endpoint? givenName ne null? surname ne null?
If I got your question right, here is something I just did:
With the above call, I can separate out Member vs. Guest because that's the only option MS Graph supports at the moment.
To further filter out more details of an employee or employees, I used companyName and createdDateTime which gave me the results I want.
Even Company name parameter isn't working because of some syntax error from my side, it will help to reduce unnecessary accounts.
3 people are following this question.