Skip to main content

Connect to Exchange mailbox

Sign in to an on-premises Exchange Server mailbox through Exchange Web Services (EWS) as a named session; checks the sign-in by opening the inbox. For Exchange Online (Microsoft 365) use the Microsoft 365 toolkit instead: Microsoft is retiring EWS there.

Command in the Exchange (EWS) toolkit · id ooa.exchange/connect · 12 inputs (1 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Exchange web services address (URL)StringYesAddress of the Exchange server's web services, usually https://<mail server>/EWS/Exchange.asmx.
UserStringNoUser that signs in: DOMAIN\user or user@domain (or the user alone with domain).
PasswordCredentialNoThe user's password from the vault (a Credential).
Sign inStringNontlmntlm: Windows sign-in, which Exchange accepts by default; basic: user name and password in each request, only over https and where the server allows it; oauth: an access token from a saved sign-in connection or the vault (hybrid modern authentication) (G5).
MailboxStringNoWork in this mailbox instead of the user's own, e.g. a shared mailbox; the user needs full access to it, or the impersonation role with impersonate.
ImpersonateBooleanNofalseAct as the mailbox's owner through Exchange impersonation (the user needs the ApplicationImpersonation role) instead of opening it as a delegate.
Timeout (seconds)NumberNo60How long to wait for each answer from the server.
Allow untrusted certificatesBooleanNofalseAccept any server certificate (self-signed or expired); for test systems only.
SessionStringNoexchangeSession name.
DomainStringNoWindows domain, when user has none (G5).
VersionStringNoExchange2013The Exchange version the requests are written for (G5).
Access tokenCredentialNoOAuth access token for the Exchange server, from a saved sign-in connection or the vault (G5).