@DevUser-4116 Sorry, unfortunately this is not possible in Azure AD Graph API or in the new Microsoft Graph API.
Also, it is recommended to use Microsoft Graph API instead as there are no further enhancements planned for Azure AD Graph API's.
I suggest you please provide this as a feedback at Microsoft Graph Feature Requests site for community to upvote and products team to consider this in future releases of Microsoft Graph.
AZURE AD GRAPH API - Domain Based Filtering Not Working , Returns All Users
Dev User
1
Reputation point
Hello. I want to filter users based on domains. I tried to do so in the following manner using Azure AD Graph API:
https://graph.windows.net/\<domain-name>/users
The issue I am facing is that I have 2 domains with 2 users each, but whichever domain I try to query on, it returns all the users regardless.
So, for example, if 2 domains are: abcd.com and xyz.com, then:
Both these urls return the same set of users.
Can anyone help in understanding the issue here?
OR
Let me know another way to filter users on domains?
Thank you. :)
1 answer
Sort by: Most helpful
-
Saurabh Sharma 23,816 Reputation points Microsoft Employee
2020-06-22T23:49:25.607+00:00