AccountExchange
The declaration to configure an Exchange account.
Declaration
object AccountExchangeProperties
| Name | Type | Description |
|---|---|---|
AuthenticationCredentialsAssetReference | string | 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 |
AuthenticationIdentityAssetReference | string | The identifier of a credential asset declaration that contains the identity that this account requires to authenticate with the Exchange server. |
CalendarServiceActive | boolean | If |
ContactsServiceActive | boolean | If |
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:
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 Path | string | The external path of the EWS server. The system uses this only when this declaration has a |
ExternalHostName | string | The external hostname of the EWS server (or IP address). |
ExternalPort | integer | The external port number of the EWS server. The system uses this only when this declaration has a |
HostName | string | The IP address or fully qualified domain name (FQDN) of the Exchange host. |
LockCalendarService | boolean | If |
LockContactsService | boolean | If |
LockMailService | boolean | If |
LockNotesService | boolean | If |
LockRemindersService | boolean | If |
MailServiceActive | boolean | If |
NotesServiceActive | boolean | If |
OAuth | AccountExchangeOAuthObject | The configuration settings for OAuth for this account. |
Path | string | The path of the EWS server. The system uses this only when this declaration has a |
Port | integer | The port number of the EWS server. The system uses this only when this declaration has a |
RemindersServiceActive | boolean | If |
SMIME | AccountExchangeSMIMEObject | Settings for S/MIME. |
UserIdentityAssetReference | string | The identifier of an asset declaration that contains the user identity for this account. The corresponding asset must be of type |
VisibleName | string | 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
}
}