Contents

TopLevel

The top-level payload properties for all profiles.

Declaration

object TopLevel

Properties

NameTypeDescription
ConsentTextTopLevel.ConsentText

A dictionary that includes:

  • A key that contains the IETF BCP 47 identifier for a language, such as en or jp

  • A value that contains the agreement localized to language specified by the key

The dictionary can also contain an optional key, default, with its value consisting of the unlocalized (usually in en) agreement.

The system always displays the agreement in a dialog, and the user needs to agree before the system can install the profile.

The system chooses a localized version in the order of preference that the user specifies in macOS, or based on the user’s current language setting in iOS. If there’s no exact match, the system uses the default localization. If there’s no default localization, the system uses the en localization. If there’s no en localization, the system uses the first available localization.

DurationUntilRemovalnumber

The number of seconds until the profile is automatically removed. If the RemovalDate key is present, the system uses whichever field yields the earliest date.

EncryptedPayloadContentdata

Enabled if IsEncrypted is true.

PayloadContent Required[TopLevel.PayloadContentItem]

The array of payload dictionaries. If IsEncrypted is true, this array isn’t needed.

PayloadDescriptionstring

The description of the profile, shown on the Detail screen for the profile. Make this description detailed enough to help the user decide whether to install the profile.

PayloadDisplayNamestring

The human-readable name for the profile, which doesn’t need to be unique. The system displays this value on the Detail screen.

PayloadExpirationDatedate

The date when a profile is no longer valid and the system presents an update button to the user.

PayloadIdentifier Requiredstring

The reverse-DNS style identifier (com.example.myprofile, for example) that identifies the profile. The system uses this string to determine whether to replace an existing profile or add it as a new profile.

PayloadOrganizationstring

The human-readable string that contains the name of the organization that provided the profile.

PayloadRemovalDisallowedboolean

If present and set to true, the user can’t delete the profile unless the profile has a removal password and the user provides it.

On macOS 10.15 and later, this key only affects removal of manually installed profiles. If set to true and no profile removal payload is present, removing the profile requires admin auth.

On macOS versions prior to 10.15, this key prevents admins from removing MDM installed profiles. However, as of macOS 10.15, users can never remove MDM profiles, not even the admin.

On iOS users can’t remove a MDM profile.

Requires a supervised device.

PayloadScopestring

A string that defines whether to install the profile for the system or the user. In many cases, it determines the location of certificate items, such as keychains. Though it’s not possible to declare different payload scopes, payloads like VPN can automatically install their items in both scopes, if needed.

PayloadType Requiredstring

The type of payload. The only supported value is Configuration.

PayloadUUID Requiredstring

The globally unique identifier for the profile. The actual content is unimportant. In macOS, you can use uuidgen to generate reasonable UUIDs.

PayloadVersion Requiredinteger

The version number of the profile format, which needs to be 1. This number represents the version of the configuration profile as a whole, not of the individual profiles within it.

RemovalDatedate

The date when the system automatically removes the profile.

TargetDeviceTypeinteger

The type of platform of the target device. Specifying the platform type helps prevent unintended installations.

For interactive installations on iOS devices, specifying a target platform avoids interstitial alerts that prompt the user to choose a profile target when multiple targets are eligible.

Allowed values:

  • 0: Any/unspecified

  • 1: iPhone/iPad/iPod Touch

  • 2: Apple Watch

  • 3: HomePod

  • 4: Apple TV

  • 5: Mac

  • 6: Vision Pro

Mentioned in

Discussion

Profile availability

Device channel

iOS, macOS, Shared iPad, tvOS, visionOS, watchOS

User channel

macOS, Shared iPad

Allow manual install

iOS, macOS, tvOS, visionOS, watchOS

Requires supervision

NA

Requires user-approved MDM

NA

Allowed in user enrollment

iOS, macOS, visionOS

Allow multiple payloads

NA

Topics

Objects

See Also

Top Level