---
title: AirPlaySecurity
framework: devicemanagement
role: symbol
role_heading: Device Management Profile
path: devicemanagement/airplaysecurity
---

# AirPlaySecurity

The payload that configures Apple TV for a particular style of AirPlay security.

## Declaration

```data
object AirPlaySecurity
```

## Properties

AccessType: The access policy for AirPlay. ANY allows connections from both Ethernet, Wi-Fi, and Apple Wireless Direct Link. WIFI_ONLY allows connections only from devices on the same Ethernet or Wi-Fi network as Apple TV. Password: The AirPlay password; required if SecurityType is PASSWORD. SecurityType: The security policy for AirPlay. Allowed values: PASSCODE_ONCE: Requires an onscreen passcode on first connection from a device. Subsequent connections from the same device aren’t prompted. PASSCODE_ALWAYS: Requires an onscreen passcode for every AirPlay connection. After an AirPlay connection ends, the system allows reconnecting within 30 seconds without a password. PASSWORD: Requires the passphrase set for Password. note: NONE was deprecated in tvOS 11.3. Existing profiles that use NONE get the PASSWORD_ONCE behavior.

## Discussion

Discussion Specify com.apple.airplay.security 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>Password</key>             <string>MyPassword</string>             <key>PayloadIdentifier</key>             <string>com.example.myairplaysecuritypayload</string>             <key>PayloadType</key>             <string>com.apple.airplay.security</string>             <key>PayloadUUID</key>             <string>c0b60f19-91c7-482e-9a95-6ba71220d93e</string>             <key>PayloadVersion</key>             <integer>1</integer>             <key>SecurityType</key>             <string>PASSWORD</string>             <key>AccessType</key>             <string>ANY</string>         </dict>     </array>     <key>PayloadDisplayName</key>     <string>AirPlay Security</string>     <key>PayloadIdentifier</key>     <string>com.example.myprofile</string>     <key>PayloadType</key>     <string>Configuration</string>     <key>PayloadUUID</key>     <string>40dc47ea-41c9-4c79-8b30-a027cf6eacd6</string>     <key>PayloadVersion</key>     <integer>1</integer> </dict> </plist>

## See Also

### AirPlay

- [AirPlay](devicemanagement/airplay.md)
