Login Script Settings

Jamf Connect Documentation

Solution
Application
Jamf Connect
Content Type
Technical Documentation
Utilities & Services
ft:locale
en-US
  • Domain —com.jamf.connect.login
  • Description —

    Used to execute scripts during the login process.

    Note:

    The RunScript mechanism must be enabled before configuring script preferences.

Setting

Description

Script Arguments

ScriptArgs

Specifies the arguments used with a specified script run by the RunScript mechanism.

Note:

The ScriptPath key must bey specified.

<key>ScriptArgs</key>
<array>
<string>-v</string>
<string>-user</string>
</array>

Script Path

ScriptPath

Specifies the path to a script or other executable run by the RunScript mechanism. Only one script can be used with Jamf Connect Login at any time.

<key>ScriptPath</key>
<string>/usr/local/bin/loginScript</string>
Note:

ScriptPath can run a script as the root user at every login, if defined. A script at the defined path can also run arbitrary code on every login. To avoid any malicious actions, administrators should consider defining ScriptPath as /dev/null/impossiblepath.sh if not in use. Alternatively, place an empty file at the path defined by ScriptPath (e.g touch /PathToFile/filename.sh and chmod 000 /PathToFile/filename.sh.

Displays Jamf Pro policy logs as status updates on the Notify screen.

NotifyLogStyle

When the Jamf Connect notify screen is configured, display Jamf Pro's policy logs during Automated Device Enrollment (formerly DEP) as status updates to users.

To enable this setting, set this value to jamf.

<key>NotifyLogStyle</key>
<string>jamf</string>

Use a Custom UID Tool

UIDTool

Specifies a path to a UID tool that allows you to set a local user account's UID to a custom value during account creation. This can be used to match a local user account's UID with a user's LDAP UID attribute. Your UID tool must be an executable script.

Your UID tool must accept account short names and respond with the UID you want for the user account.

<key>UIDTool</key>
<string>/Users/Shared/UIDTool</string>