How can i programmatically verify whether a given (custom) domain has already been registered for an Azure AD tenant?
The solution must also work for tenants not federated with on-premises AD using ADFS and I'd rather not resort to web scraping.
A potential use case is to probe whether a partner organization is using Azure AD in the first place.