setup-your-mac / Setup-Your-Mac

Setup Your Mac aims to simplify initial device configuration by leveraging swiftDialog and Jamf Pro Policy Custom Events to allow end-users to self-complete Mac setup post-enrollment.
https://snelson.us/sym
MIT License
246 stars 54 forks source link

Additional User Input Flags #34

Closed rougegoat closed 1 year ago

rougegoat commented 1 year ago

Adjusted previous "promptFor_" toggles to line up with other toggles in the script Add a commented out option to disable Blur screen on production runs Added a handful of Branding overrides

Primary goal is to cut down on modifications needed by those adapting this script down the line.

dan-snelson commented 1 year ago

@rougegoat:

First. thanks for all the excellent PRs; long-term, your additions are going to make SYM much more accessible for new Mac Admins.

Second, in testing 1.10.0-rc21, looks like we don't currently have a way to disable User Name:

# These control which user input boxes are added to the first page of Setup Your Mac. If you do not want to ask about a value, set it to any other value
promptForAssetTag="false"
promptForRoom="false"
promptForComputerName="false"
prefillUsername="false"
moveableInProduction="false"
Screenshot 2023-04-24 at 9 27 22 AM

(As an example, for our internal use-case, we only prompt users for Asset Tag and Configuration.)

Please advise if you have cycles to submit (yet) another PR.

Thanks again.

-- Dan

dan-snelson commented 1 year ago

As a Band-Aid, I've replaced the public 1.10.0-rc21

    "textfield" : [
        {   "title" : "User Name",
            "required" : false,
            "prompt" : "User Name"
            '${usernamePrefil}'
        }
        '${compNameJSON}'
        '${assetTagJSON}'
        '${roomJSON}'
    ],

… with our internal:

    "textfield" : [
        {   "title" : "Asset Tag",
            "required" : true,
            "prompt" : "Please enter the seven-digit Asset Tag",
            "regex" : "^(AP|IP|CD)?[0-9]{7,}$",
            "regexerror" : "Please enter (at least) seven digits for the Asset Tag, optionally preceed by either AP, IP or CD."
        }
    ],