Professional Documents
Culture Documents
Autodiscover For Exchange - Microsoft Docs
Autodiscover For Exchange - Microsoft Docs
Autodiscover For Exchange - Microsoft Docs
The Exchange Autodiscover service provides an easy way for your client application to
configure itself with minimal user input. Most users know their email address and
password, and with those two pieces of information, you can retrieve all the other details
you need to get up and running. For Exchange Web Services (EWS) clients, Autodiscover is
typically used to find the EWS endpoint URL, but Autodiscover can also provide
information to configure clients that use other protocols. Autodiscover works for client
applications that are inside or outside firewalls and will work in resource forest and
multiple forest scenarios.
https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/autodiscover-for-exchange 1/8
9/11/22, 11:47 PM Autodiscover for Exchange | Microsoft Docs
https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/autodiscover-for-exchange 2/8
9/11/22, 11:47 PM Autodiscover for Exchange | Microsoft Docs
Active For domain-joined clients, this is the first place to look. Exchange publishes service
Directory connection point (SCP) objects in AD DS, which allows Autodiscover requests to be
Domain routed to servers based on Active Directory sites. The results of an SCP lookup should
Services be at the top of your candidate list.
(AD DS)
NOTE: SCP lookup isn't available for clients that are not joined to a domain or that do
not have access to Active Directory servers. In this case, you should skip SCP lookup.
The user's Autodiscover defines two standard endpoint URL forms that are derived from the
email domain portion of the user's email address:
address "https://" + domain + "/autodiscover/autodiscover" + *fileExtension*
domain "https://autodiscover." + domain + "/autodiscover/autodiscover" +
*fileExtension*
The value of fileExtension depends on which Autodiscover access method you are
using, SOAP or POX . The SOAP service uses a ".svc" file extension; POX uses ".xml".
https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/autodiscover-for-exchange 3/8
9/11/22, 11:47 PM Autodiscover for Exchange | Microsoft Docs
Before you send a request to a candidate, make sure it is trustworthy. Remember that
you're sending the user's credentials, so it's important to make sure that you're only
sharing them with a server you can trust. At a minimum, you should verify:
That the endpoint is an HTTPS endpoint. Client applications should not authenticate
or send data to a non-SSL endpoint.
That the SSL certificate presented by the server is valid and from a trusted authority.
7 Note
These are just basic security suggestions. Whenever you are working with
authentication, make sure that your code meets the security requirements of your
organization.
https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/autodiscover-for-exchange 4/8
9/11/22, 11:47 PM Autodiscover for Exchange | Microsoft Docs
The type of request you send depends on how you are accessing the Autodiscover service.
The POX Autodiscover service An HTTP POST with an Autodiscover request body .
"_autodiscover._tcp." + domain. This query might return multiple records, but you should
only use records that point to an SSL endpoint and that have the highest priority and
weight.
EWS Managed Implements Limited to the user settings that are available in the
API the Microsoft.Exchange.WebServices.Autodiscover.UserSettingName
Autodiscover enumeration.
process for
you. Only available for .NET Framework applications.
Works with
Exchange
Online,
Exchange
Online as
part of Office
365, or a
version of
Exchange
starting with
Exchange
2007 SP1.
Easy to use.
https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/autodiscover-for-exchange 6/8
9/11/22, 11:47 PM Autodiscover for Exchange | Microsoft Docs
Allows you to
request just
the settings
you are
interested in.
Supported in
Exchange
Online and all
versions of
Exchange
starting with
Exchange
2007 SP1.
In this section
Find Autodiscover endpoints by using SCP lookup in Exchange
See also
https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/autodiscover-for-exchange 7/8
9/11/22, 11:47 PM Autodiscover for Exchange | Microsoft Docs
https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/autodiscover-for-exchange 8/8