---
title: ExchangeActiveSync
framework: devicemanagement
role: symbol
role_heading: Device Management Profile
path: devicemanagement/exchangeactivesync
---

# ExchangeActiveSync

The payload that configures Exchange ActiveSync accounts.

## Declaration

```data
object ExchangeActiveSync
```

## Properties

allowMailDrop: If true, the system enables this account to use Mail Drop. Available: iOS 9.2+ | iPadOS 9.2+ | visionOS 1.1+ Certificate: The .p12 identity certificate in NSData blob format, for accounts that allow authentication via certificate. Available: iOS 7+ | iPadOS 7+ | visionOS 1.1+ CertificateName: The name or description of the certificate. Available: iOS 7+ | iPadOS 7+ | visionOS 1.1+ CertificatePassword: The password necessary for the .p12 identity certificate. Used with mandatory encryption of profiles. CommunicationServiceRules: The communication service handler rules for this account. Available: iOS 10+ | iPadOS 10+ | visionOS 1.1+ disableMailRecentsSyncing: If true, the system excludes this account from Recent Addresses syncing. EmailAddress: The full email address for the account. If not present in the payload, the device prompts for this string during profile installation. EnableCalendars: If false, the system disables the Calendars service for this account. The user can reenable Calendars service in Settings unless EnableCalendarsUserOverridable is false. note: At least of the following fields needs to be true: EnableMail, EnableContacts, EnableCalendars, EnableReminders, and EnableNotes. Available: iOS 13+ | iPadOS 13+ | visionOS 1.1+ EnableCalendarsUserOverridable: If false, the system prevents the user from changing the state of the Calendars service for this account in Settings. Available: iOS 13+ | iPadOS 13+ | visionOS 1.1+ EnableContacts: If false, the system disables the Contacts service for this account. The user can reenable Contacts service in Settings unless EnableContactsUserOverridable is false. note: At least of the following fields needs to be true: EnableMail, EnableContacts, EnableCalendars, EnableReminders, and EnableNotes. Available: iOS 13+ | iPadOS 13+ | visionOS 1.1+ EnableContactsUserOverridable: If false, the system prevents the user from changing the state of the Contacts service for this account in Settings. Available: iOS 13+ | iPadOS 13+ | visionOS 1.1+ EnableMail: If false, the system disables the Mail service for this account. The user can reenable Mail service in Settings unless EnableMailUserOverridable is false. note: At least of the following fields needs to be true: EnableMail, EnableContacts, EnableCalendars, EnableReminders, and EnableNotes. Available: iOS 13+ | iPadOS 13+ | visionOS 1.1+ EnableMailUserOverridable: If false, the system prevents the user from changing the state of the Mail service for this account in Settings. Available: iOS 13+ | iPadOS 13+ | visionOS 1.1+ EnableNotes: If false, the system disables the Notes service for this account. The user can reenable Notes service in Settings unless EnableNotesUserOverridable is false. note: At least of the following fields needs to be true: EnableMail, EnableContacts, EnableCalendars, EnableReminders, and EnableNotes. Available: iOS 13+ | iPadOS 13+ | visionOS 1.1+ EnableNotesUserOverridable: If false, prevents the user from changing the state of the Notes service for this account in Settings. Available: iOS 13+ | iPadOS 13+ | visionOS 1.1+ EnableReminders: If false, the system disables the Reminders service for this account. The user can reenable Reminders service in Settings unless EnableRemindersUserOverridable is false. note: At least of the following fields needs to be true: EnableMail, EnableContacts, EnableCalendars, EnableReminders, and EnableNotes. Available: iOS 13+ | iPadOS 13+ | visionOS 1.1+ EnableRemindersUserOverridable: If false, the system prevents the user from changing the state of the Reminders service for this account in Settings. Available: iOS 13+ | iPadOS 13+ | visionOS 1.1+ HeaderMagic: The value of the X-Apple-Config-Magic header in each EAS HTTP request. Available: iOS 4+ | iPadOS 4+ Deprecated: iOS 7+ | iPadOS 7+ Host: The Exchange server host name or IP address. MailNumberOfPastDaysToSync: The number of days in the past to sync mail on the device. For no limit, use the value 0. OAuth: If true, enables OAuth for authentication. If enabled, don’t specify a password. Available only in iOS 12.0 and above. Available: iOS 12+ | iPadOS 12+ | visionOS 1.1+ OAuthSignInURL: The URL that this account should use for signing in through OAuth. Ignored unless OAuth is true. If you specify this URL, auto-discovery isn’t used for this account, so you need to also specify a host. Available: iOS 13+ | iPadOS 13+ | visionOS 1.1+ OAuthTokenRequestURL: The URL that this account should use for token requests through OAuth. Ignored unless OAuth is true. Available: iOS 13+ | iPadOS 13+ | visionOS 1.1+ OverridePreviousPassword: If true, the system overrides the previous user/EAS password with the new EAS password in the payload. Available: iOS 14+ | iPadOS 14+ | visionOS 1.1+ Password: The password of the account. Use only with encrypted profiles. PayloadCertificateUUID: The UUID of the certificate payload within the same profile to use for the identity credential. If this field is present, the Certificate field isn’t used. PreventAppSheet: If true, prevents this account from sending mail in any app other than the Apple Mail app. Available: iOS 5+ | iPadOS 5+ | visionOS 1.1+ PreventMove: If true, the system prevents moving messages from out of this email account into another account. This setting also prevents forwarding or replying from an account other than the recipient of the message. Available: iOS 5+ | iPadOS 5+ | visionOS 1.1+ SMIMEEnabled: If true, the system enables S/MIME encryption. In iOS 10.0 and later, this key is ignored. Use SMIMESigningEnabled instead. Available: iOS 5+ | iPadOS 5+ Deprecated: iOS 10+ | iPadOS 10+ SMIMEEnableEncryptionPerMessageSwitch: If true, the system displays the per-message encryption switch in the Mail Compose UI. Available: iOS 12+ | iPadOS 12+ | visionOS 1.1+ SMIMEEnablePerMessageSwitch: If true, the system displays the per-message encryption switch in the Mail Compose UI. This key is deprecated. Use SMIMEEnableEncryptionPerMessageSwitch instead. Available: iOS 8+ | iPadOS 8+ Deprecated: iOS 12+ | iPadOS 12+ SMIMEEncryptByDefault: If true, the system enables S/MIME encryption by default. If SMIMEEnableEncryptionPerMessageSwitch is false, the user can’t change this default. Available: iOS 12+ | iPadOS 12+ | visionOS 1.1+ SMIMEEncryptByDefaultUserOverrideable: If true, the system enables encryption by default and the user can’t change it. Available: iOS 12+ | iPadOS 12+ | visionOS 1.1+ SMIMEEncryptionCertificateUUID: The payload UUID of the identity certificate used to decrypt messages sent to this account. The system attaches the public certificate to outgoing mail to allow the user to receive encrypted mail. When the user sends encrypted mail, the system uses the public certificate to encrypt the copy of the mail in the user’s Sent mailbox. Available: iOS 5+ | iPadOS 5+ | visionOS 1.1+ SMIMEEncryptionCertificateUUIDUserOverrideable: If true, the user can select the S/MIME encryption identity, and encryption is on. Available: iOS 12+ | iPadOS 12+ | visionOS 1.1+ SMIMEEncryptionEnabled: If true, the system enables S/MIME encryption for this account. This key is deprecated. Use SMIMEEncryptByDefault instead. Available: iOS 10.3+ | iPadOS 10.3+ Deprecated: iOS 12+ | iPadOS 12+ SMIMESigningCertificateUUID: The UUID of the identity certificate used to sign messages sent from this account. Available: iOS 5+ | iPadOS 5+ | visionOS 1.1+ SMIMESigningCertificateUUIDUserOverrideable: If true, the user can select the signing identity. Available: iOS 12+ | iPadOS 12+ | visionOS 1.1+ SMIMESigningEnabled: If true, the system enables S/MIME signing for this account. Available: iOS 10.3+ | iPadOS 10.3+ | visionOS 1.1+ SMIMESigningUserOverrideable: If true, the user can turn S/MIME signing on or off in Settings. Available: iOS 12+ | iPadOS 12+ | visionOS 1.1+ SSL: If true, the system enables SSL for authentication. UserName: This user name for this Exchange account. Required for noninteractive installations like MDM in iOS. VPNUUID: The VPNUUID of the per-app VPN the account uses for network communication. Available: iOS 14+ | iPadOS 14+ | visionOS 1.1+

## Discussion

Discussion Specify com.apple.eas.account as the payload type. Profile availability  |   |   |   |   |   |   |   |  Profile example <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0">     <dict>         <key>PayloadContent</key>         <array>             <dict>                 <key>EmailAddress</key>                 <string>juanchavez4@example.com</string>                 <key>EnableCalendars</key>                 <true/>                 <key>EnableCalendarsUserOverridable</key>                 <true/>                 <key>EnableContacts</key>                 <true/>                 <key>EnableContactsUserOverridable</key>                 <true/>                 <key>EnableMail</key>                 <true/>                 <key>EnableMailUserOverridable</key>                 <true/>                 <key>EnableNotes</key>                 <true/>                 <key>EnableNotesUserOverridable</key>                 <true/>                 <key>EnableReminders</key>                 <true/>                 <key>EnableRemindersUserOverridable</key>                 <true/>                 <key>Host</key>                 <string>host.example.com</string>                 <key>MailNumberOfPastDaysToSync</key>                 <integer>7</integer>                 <key>OAuth</key>                 <false/>                 <key>OverridePreviousPassword</key>                 <false/>                 <key>SMIMEEnabled</key>                 <false/>                 <key>SMIMEEncryptionEnabled</key>                 <false/>                 <key>SMIMESigningEnabled</key>                 <false/>                 <key>SSL</key>                 <true/>                 <key>UserName</key>                 <string>juanchavez4@example.com</string>                 <key>disableMailRecentsSyncing</key>                 <false/>                 <key>PayloadIdentifier</key>                 <string>com.example.myeaspayload</string>                 <key>PayloadType</key>                 <string>com.apple.eas.account</string>                 <key>PayloadUUID</key>                 <string>de789252-dcf2-42e7-91c8-0ab9f50aafc5</string>                 <key>PayloadVersion</key>                 <integer>1</integer>             </dict>         </array>         <key>PayloadDisplayName</key>         <string>Exchange Active Sync</string>         <key>PayloadIdentifier</key>         <string>com.example.myprofile</string>         <key>PayloadType</key>         <string>Configuration</string>         <key>PayloadUUID</key>         <string>b8fd6fd7-a55e-4eb1-96af-d9c4d8562e38'</string>         <key>PayloadVersion</key>         <integer>1</integer>     </dict> </plist>

## Topics

### Objects

- [ExchangeActiveSync.CommunicationServiceRules](devicemanagement/exchangeactivesync/communicationservicerules-data.dictionary.md)

## See Also

### Mail

- [ExchangeWebServices](devicemanagement/exchangewebservices.md)
- [Mail](devicemanagement/mail.md)
