add <PayloadOrganization> to MDM enrollment payload (#8752)

The value of this attribute is used by macOS in "System Preferences >
Profiles" to display a note saying "This Mac is supervised and managed
by <xyz>".

When <PayloadOrganization> is not set, it uses the URL of the MDM server
for the message, which looks unpolished.
This commit is contained in:
Roberto Dip 2022-11-18 11:25:44 -03:00 committed by GitHub
parent 3c8fd12ebf
commit b6f7efe164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -752,6 +752,8 @@ var enrollmentProfileMobileconfigTemplate = template.Must(template.New("").Parse
<string>{{ .Organization }} Enrollment</string>
<key>PayloadIdentifier</key>
<string>com.fleetdm.fleet.mdm.apple</string>
<key>PayloadOrganization</key>
<string>{{ .Organization }}</string>
<key>PayloadScope</key>
<string>System</string>
<key>PayloadType</key>