IBM / mac-ibm-migration-tool

macOS Utility to facilitate the mass migration of files/apps/preferences between devices.
Apache License 2.0
47 stars 4 forks source link

Make mdm environments managed #16

Closed ryangball closed 1 week ago

ryangball commented 2 weeks ago

This PR does two things:

  1. Allows you to configure the mdmEnvironment: [ManagedEnvironment] object using a profile. This will allow an admin to get the app up and running with little work.
  2. Allows you to define serverURL property in ManagedEnvironment object with OR without the /mdm/ServerURL suffix. I think this will help people configure the app easier and we can handle ensuring the URL is the correct format in code.

Example of the various different ways you can configure the mdmEnvironment key:

<key>mdmEnvironments</key>
<array>
    <dict>
        <key>name</key>
        <string>Jamf Pro Server 1</string>
        <key>serverURL</key>
        <string>https://server1.company.com</string>
        <key>reconPolicyID</key>
        <string>033</string>
    </dict>
    <dict>
        <key>name</key>
        <string>Jamf Pro Server 2 With Trailing Slash Because Copy/Paste</string>
        <key>serverURL</key>
        <string>https://server2.company.com/</string>
        <key>reconPolicyID</key>
        <string>037</string>
    </dict>
    <dict>
        <key>name</key>
        <string>Jamf Pro Server 3 With mdm/ServerURL Path</string>
        <key>serverURL</key>
        <string>https://server3.company.com/mdm/ServerURL</string>
        <key>reconPolicyID</key>
        <string>039</string>
    </dict>
</array>

List which issues are fixed by this PR. You must list at least one issue. This resolves #15.

Pre-launch Checklist