Use the Dynamics 365 Discovery services

Applies to Dynamics 365 (online), version 9.x

The Discovery web services are used to determine the organizations that a user is a member of, and the endpoint address URL to access the Organization service or Web API for each of those organizations. This Discovery service is necessary because Dynamics 365 is a multi-tenant environment. A single Dynamics 365 server can host multiple business organizations. By using the Discovery web service, your application can determine the endpoint address URL to access the target organization’s business data.

A Discovery service is accessed through either the Web API or the Organization Service.

See also

Use Dynamics 365 web services
Use Dynamics 365 Customer Engagement Web API
Use Dynamics 365 Customer Engagement Organization Service