Domains
The payload that configures the domains under an organization’s management.
Declaration
object DomainsProperties
| Name | Type | Description |
|---|---|---|
CrossSiteTrackingPreventionRelaxedApps | [string] | An array of up to 10 strings representing app bundle-ids. Apps matching the bundle-ids listed here have relaxed enforcement of cross-site tracking prevention for the domains listed in Available: iOS 18+ | iPadOS 18+ | macOS 15+ | visionOS 2+ |
CrossSiteTrackingPreventionRelaxedDomains | [string] | An array of up to 10 strings. URLs matching the patterns listed here have relaxed enforcement of cross-site tracking prevention. Available: iOS 16.2+ | iPadOS 16.2+ | macOS 13.1+ | visionOS 2+ |
EmailDomains | [string] | An array of domains. Mail marks in red all email addresses that lack a suffix matching any of these strings. Available: iOS 8+ | iPadOS 8+ | macOS 10.10+ |
SafariPasswordAutoFillDomains | [string] | An array of domains. Users can only save passwords in Safari from URLs matching the patterns listed here. This property doesn’t disable the autofill feature itself. Supervised devices or Shared iPad need this property to enable saving passwords in Safari. Available: iOS 9.3+ | iPadOS 9.3+ | visionOS 2+ |
WebDomains | [string] | An array of domains. The system considers URLs matching the patterns listed in this property managed. Available: iOS 8+ | iPadOS 8+ | visionOS 2+ |
Discussion
Specify com.apple.domains as the payload type.
The WebDomains, SafariPasswordAutoFillDomains, and CrossSiteTrackingPreventionRelaxedDomains keys are arrays containing strings that use the following matching patterns:
example.com: Any path underexample.commatches, but notsite.example.com.foo.example.com: Any path underfoo.example.commatches, but notexample.comorbar.example.com.\*.example.com: Any path underfoo.example.comorbar.example.commatches, but notexample.com.example.com/sub:example.com/suband any path under it matches, but notexample.com.foo.example.com/sub: Any path underfoo.example.com/submatches, but notexample.com,example.com/sub,foo.example.com/, orbar.example.com/sub.\*.example.com/sub: Any path underfoo.example.com/suborbar.example.com/submatches, but notexample.comorfoo.example.com/.\*.co: Any path underexample.coorbetterbag.comatches, but notexample.co.ukorexample.com.
A URL that begins with the prefix www. is treated as though it doesn’t contain that prefix during matching. For example, http://www.example.com/store is matched as http://example.com/store.
Trailing slashes are ignored.
If a domain string contains a port number, the system considers only addresses that specify that port number managed. Otherwise, the system matches the domain without regard to the port number specified. For example, the pattern *.example.com:8080 matches http://site.example.com:8080/page.html but not http://site.example.com/page.html, while the pattern *.example.com matches both URLs.
Profile availability
Device channel | iOS, macOS, Shared iPad, visionOS |
User channel | macOS, Shared iPad |
Allow manual install | iOS, macOS, visionOS |
Requires supervision | N/A |
Requires user-approved MDM | N/A |
Allowed in user enrollment | N/A |
Allow multiple payloads | N/A |
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>EmailDomains</key>
<array>
<string>example.com</string>
</array>
<key>SafariPasswordAutoFillDomains</key>
<array>
<string>example.com</string>
</array>
<key>WebDomains</key>
<array>
<string>example.com</string>
</array>
<key>PayloadIdentifier</key>
<string>com.example.mysafaridomainspayload</string>
<key>PayloadType</key>
<string>com.apple.domains</string>
<key>PayloadUUID</key>
<string>0f94e664-4c36-4637-b264-19a533adc8e1</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</array>
<key>PayloadDisplayName</key>
<string>Domains</string>
<key>PayloadIdentifier</key>
<string>com.example.myprofile</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>0cf6d95f-8e9f-49f3-9cba-c5e78de5430e</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>