Contents

AccountExchange

The declaration to configure an Exchange account.

Declaration

object AccountExchange

Properties

NameTypeDescription
AuthenticationCredentialsAssetReferencestring

The identifier of an asset declaration that contains the credentials for this account to authenticate with an Exchange server. Set the corresponding asset type to CredentialUserNameAndPassword.

AuthenticationIdentityAssetReferencestring

The identifier of a credential asset declaration that contains the identity that this account requires to authenticate with the Exchange server.

CalendarServiceActiveboolean

If true, activates the calendar service for this account.

ContactsServiceActiveboolean

If true, activates the address book service for this account.

EnabledProtocolTypes Required[string]

The set of protocol types to enable on the Exchange server, in order of preference. This is an array of unique strings with possible values:

  • EAS: Exchange ActiveSync

  • EWS: Exchange Web Services

If the device supports one or more of the listed protocol types, it sets up an account for the first supported type.

If the device doesn’t support any of the listed protocol types, it doesn’t set up an account and the system reports an error.

External Pathstring

The external path of the EWS server. The system uses this only when this declaration has a ExternalHostName value.

ExternalHostNamestring

The external hostname of the EWS server (or IP address).

ExternalPortinteger

The external port number of the EWS server. The system uses this only when this declaration has a ExternalHostName value.

HostNamestring

The IP address or fully qualified domain name (FQDN) of the Exchange host.

LockCalendarServiceboolean

If true, the system prevents the user from changing the status of the calendar service for this account.

LockContactsServiceboolean

If true, the system prevents the user from changing the status of the address book service for this account.

LockMailServiceboolean

If true, the system prevents the user from changing the status of the mail service for this account.

LockNotesServiceboolean

If true, the system prevents the user from changing the status of the notes service for this account.

LockRemindersServiceboolean

If true, the system prevents the user from changing the status of the reminders service for this account.

MailServiceActiveboolean

If true, the system activates the mail service for this account.

NotesServiceActiveboolean

If true, the system activates the notes service for this account.

OAuthAccountExchangeOAuthObject

The configuration settings for OAuth for this account.

Pathstring

The path of the EWS server. The system uses this only when this declaration has a HostName value.

Portinteger

The port number of the EWS server. The system uses this only when this declaration has a HostName value.

RemindersServiceActiveboolean

If true, the system activates the reminders service for this account.

SMIMEAccountExchangeSMIMEObject

Settings for S/MIME.

UserIdentityAssetReferencestring

The identifier of an asset declaration that contains the user identity for this account. The corresponding asset must be of type UserIdentity.

VisibleNamestring

The name that apps show to the user for this Exchange account. If not present, the system generates a suitable default.

Discussion

Specify com.apple.configuration.account.exchange as the declaration type.

Configuration availability

Allowed in supervised enrollment

iOS, macOS, Shared iPad, visionOS

Allowed in device enrollment

iOS, Shared iPad, visionOS

Allowed in user enrollment

iOS, macOS, Shared iPad, visionOS

Allowed in local enrollment

iOS, macOS, Shared iPad, visionOS

Allowed in system scope

iOS, visionOS

Allowed in user scope

macOS, Shared iPad

Configuration example

{
    "Type": "com.apple.configuration.account.exchange",
    "Identifier": "EB13EE2B-5D63-4EBA-810F-5B81D07F5017",
    "ServerToken": "E180CA9A-F089-4FA3-BBDF-94CC159C4AE8",
    "Payload": {
        "VisibleName": "Work Exchange",
        "HostName": "exchange.example.com",
        "EnabledProtocolTypes": [
            "EAS",
            "EWS"
        ],
        "UserIdentityAssetReference": "CB3E6C7F-2318-437B-8A9E-D50C69376DE4",
        "AuthenticationCredentialsAssetReference": "64BF8F5C-8CFD-40AA-9082-A0B594D4E100",
        "LockMailService": true,
        "NotesServiceActive": false,
        "LockNotesService": true
    }
}

Topics

Objects

See Also

Configurations