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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Exchange web services address (URL) | String | Yes | Address of the Exchange server's web services, usually https://<mail server>/EWS/Exchange.asmx. | |
| User | String | No | User that signs in: DOMAIN\user or user@domain (or the user alone with domain). | |
| Password | Credential | No | The user's password from the vault (a Credential). | |
| Sign in | String | No | ntlm | ntlm: 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). |
| Mailbox | String | No | Work 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. | |
| Impersonate | Boolean | No | false | Act as the mailbox's owner through Exchange impersonation (the user needs the ApplicationImpersonation role) instead of opening it as a delegate. |
| Timeout (seconds) | Number | No | 60 | How long to wait for each answer from the server. |
| Allow untrusted certificates | Boolean | No | false | Accept any server certificate (self-signed or expired); for test systems only. |
| Session | String | No | exchange | Session name. |
| Domain | String | No | Windows domain, when user has none (G5). | |
| Version | String | No | Exchange2013 | The Exchange version the requests are written for (G5). |
| Access token | Credential | No | OAuth access token for the Exchange server, from a saved sign-in connection or the vault (G5). |