<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceManagement",
  "identifier" : "/documentation/DeviceManagement/AccountExchange",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Device Management"
    ],
    "preciseIdentifier" : "rmdm-declarations:AccountExchange"
  },
  "title" : "AccountExchange"
}
-->

# AccountExchange

The declaration to configure an Exchange account.

```
object AccountExchange
```

## 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                            |
|Apply                           |Multiple configurations are applied separately|

### Configuration example

This configuration sets up a Microsoft Exchange account.

```json
{
    "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

[`AccountExchangeOAuthObject`](/documentation/DeviceManagement/AccountExchangeOAuthObject)

The configuration settings for OAuth for this account.

[`AccountExchangeSMIMEObject`](/documentation/DeviceManagement/AccountExchangeSMIMEObject)

Settings for S/MIME.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)
