> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getprimo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Exchange accounts

> Add an Exchange account to the Mail, Calendar, Contacts, Notes and Reminders apps of managed Macs.

The Exchange accounts control adds an Exchange Web Services account for the Mac's signed-in user, in Mail, Calendar, Contacts, Notes and Reminders. Set its internal and external servers, SSL, OAuth sign-in and Mail Drop. The control takes several configurations, one per account.

## Platform compatibility

| macOS | Windows | Linux | iOS / iPadOS | Android |
| - | - | - | - | - |
| ✅ | | | | |

Requires macOS 15 or later, and a user signed in on the Mac.

## Set up the control

**1. Add a configuration**

Go to **MDM** > **Controls**, open **Exchange accounts**, then click **Add configuration**. Add one configuration per account.

**2. Configure the account**

Enter the **Email address** and **User name**, then the servers. See the settings below.

**3. Select targeting**

Choose which devices to apply the configuration to: all macOS devices, specific device groups, or a custom target. Click **Activate** to deploy the configuration. **Save** keeps it inactive.

A setting left empty or on **Not configured** isn't written: the Mac uses its own default.

## Settings

| Section | Setting |
| - | - |
| **Account** | **Email address** (required) |
| | **User name** (required) |
| | **Sign in with OAuth** |
| | **OAuth sign-in page URL** (when **Sign in with OAuth** is **On**) |
| | **Allow Mail Drop** |
| **Internal server** | **Server host name** |
| | **Port** |
| | **Path** |
| | **Use SSL** |
| **External server** | **Server host name** |
| | **Port** |
| | **Path** |
| | **Use SSL** |

* **Sign in with OAuth**, **Allow Mail Drop** and **Use SSL**: **On**, **Off** or **Not configured**.
* **Server host name**: the host name or IP address of the Exchange server, such as `exchange.example.com`. Leave the internal server's host name empty to let the Mac find the server through Autodiscover.
* **Port**: a number from 1 to 65535.
* **Path**: a path that starts with a slash, such as `/EWS/Exchange.asmx`.
* **OAuth sign-in page URL**: an `https://` URL. Use it only when Autodiscover isn't used: it needs the internal server's **Server host name**.

## How it works

Primo deploys a user-scoped configuration profile with an Exchange Web Services payload. macOS installs it for the user signed in on the Mac. It doesn't install on a Mac with no user signed in.

> [!NOTE]
>
> The profile holds no password and no certificate. The employee types the password, or signs in through OAuth, the first time the Mac connects to the account.

The **Email address** and **User name** are required because macOS can't ask the employee for them on an account installed by MDM.

## Modify or remove the control

Open the control from **MDM > Controls** to edit, deactivate or replace a configuration.

## Related articles

* [Controls overview](https://docs.getprimo.com/mdm/policies/overview.md)
* [Mail accounts](https://docs.getprimo.com/mdm/policies/mail-accounts.md)
* [Calendar and contacts accounts](https://docs.getprimo.com/mdm/policies/calendar-and-contacts-accounts.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.