LegacyProfile
The declaration to configure a legacy profile.
Declaration
object LegacyProfileProperties
| Name | Type | Description |
|---|---|---|
ProfileAssetReference | string | The identifier of an asset declaration containing a reference to the profile data. The corresponding asset needs to be of type One of Available: iOS 27+ | iPadOS 27+ | macOS 27+ | tvOS 27+ | visionOS 27+ | watchOS 27+ |
ProfileURL | string | The URL of the profile to download and install, which needs to start with One of |
Discussion
Specify com.apple.configuration.legacy as the declaration type.
This declaration specifies an MDMv1 profile for the device to download and install.
The profile may contain any payload type other than the following:
com.apple.mdmcom.apple.declarations
If a user enrollment triggers this configuration: in macOS the system silently ignores any MDMv1 payloads in macOS where the User Enrollment Mode setting is forbidden; in iOS, tvOS, watchOS and visionOS, the system rejects the entire profile if any MDMv1 payload has its User Enrollment Mode setting set to forbidden.
Transition profiles from MDM
A declarative device management (DDM) legacy profile can take control of profiles installed via MDM. This avoids the need to first remove the MDM profile, before installing the DDM equivalent. DDM cannot take over control of non-MDM-installed profiles.
The rules for transitioning profiles are:
An existing MDM-installed profile is present (installed by MDM using the Install Profile).
DDM is enabled on the device.
The server sends a legacy profile configuration to the device and ensures it is “activated”.
The DDM profile that the configuration applies needs to conform to the following requirements:
The DDM profile’s
PayloadIdentifierandPayloadUUIDneed to match that of the MDM profile.The DDM profile needs to have the same number of payloads as the MDM profile.
The DDM profile payloads needs to have the same
PayloadType,PayloadIdentifier, andPayloadUUID, in the same order as the profile payloads in the MDM profile.
If the DDM profile doesn’t conform to the above requirements, the configuration isn’t applied and its
validstatus is set toinvalid.The Profile List can be used to determine the “structure” of existing MDM profiles to satisfy the above requirements.
When DDM takes control of the MDM profile, the following occurs:
The system doesn’t reinstall the profile. Instead, the MDM profile’s existing system state remains unchanged. Thus system state won’t include any differences between the MDM and DDM profiles (other than the structural items outlined above that must match).
Any attempt to install, update, or remove the profile using MDM commands fails (using the usual identifier and UUID matching rules). This holds true while the DDM profile is active.
Updates to the DDM configuration result in the system reapplying the profile which updates the system state with any new or changed settings.
Configuration availability
Allowed in supervised enrollment | iOS, macOS, Shared iPad, tvOS, visionOS, watchOS |
Allowed in device enrollment | iOS, Shared iPad, tvOS, visionOS |
Allowed in user enrollment | iOS, macOS, Shared iPad, visionOS |
Allowed in local enrollment | iOS, macOS, Shared iPad, tvOS, visionOS, watchOS |
Allowed in system scope | iOS, macOS, Shared iPad, tvOS, visionOS, watchOS |
Allowed in user scope | macOS, Shared iPad |
Apply | Multiple configurations are applied separately |