> ## 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.

# Calendar and contacts accounts

> Add a CalDAV calendar account, a CardDAV contacts account or an LDAP directory to the Calendar and Contacts apps of managed Macs.

The Calendar and contacts accounts control adds an account to the Calendar and Contacts apps of the Mac's signed-in user: a CalDAV calendar account, a CardDAV contacts account, or an LDAP directory that Contacts searches. 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 **Calendar and contacts accounts**, then click **Add configuration**. Add one configuration per account.

**2. Configure the account**

Pick the **Account type**, then fill in the server. 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 types |
| - | - | - |
| **Account** | **Account type** | All |
| | **Account description** | All |
| **Server** | **Server host name** (required) | All |
| | **Port** | Calendar, Contacts |
| | **Use SSL** | All |
| | **User name** (required) | Calendar, Contacts |
| | **Principal URL** | Calendar |
| **Directory searches** | **Description**, **Search base**, **Scope** | Directory |

* **Account type**: **Calendar (CalDAV)**, **Contacts (CardDAV)** or **Directory (LDAP)**. The form shows only the settings of the type you pick.
* **Server host name**: the host name of the server, such as `dav.example.com`.
* **Port**: a number from 1 to 65535.
* **Use SSL**: **On**, **Off** or **Not configured**.
* **Principal URL**: the full URL of the principal, such as `https://dav.example.com/principals/user/`.

### Directory searches

A directory account can list the searches Contacts runs. Click **Add a search** for each one:

* **Description**: a name for the search, such as `People`.
* **Search base**: where the search starts, such as `ou=people,dc=example,dc=com`.
* **Scope**: **This entry only**, **One level below** or **Whole subtree**.

## How it works

Primo deploys a user-scoped configuration profile with one payload: CalDAV for a calendar account, CardDAV for a contacts account, or LDAP for a directory. 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. Calendar or Contacts asks the employee for it the first time it connects to the account.

A calendar or contacts account needs its **User name**: macOS can't ask the employee for it 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)
* [Exchange accounts](https://docs.getprimo.com/mdm/policies/exchange-accounts.md)
* [Mail accounts](https://docs.getprimo.com/mdm/policies/mail-accounts.md)


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