Our office 365 account has multiple DNS validated domains. Some of them are federated using ADFS and some of them are managed domains.
For managed domain users, we are building an application using Graph API. The application should operate on a particular domain.
Is there a way to list users in a particular domain without enumerating all users and then selecting users with upn suffix that matches the domain name?
Is there a way to enumerate users only from managed domains?
Some of the federated domain have many users, enumerating all and then filtering by domain name is taking long time. Are there any alternatives? Please clarify.
Thanks in advance
Anil Lingamallu