Login Scripts

You can configure Jamf Connect Login to run a script after the authentication process. For example, if configuring Jamf Connect Login with the Notify splash screen during a Automated Device Enrollment workflow, you can add the Notify script file path to your configuration profile.

To add a script to the Jamf Connect Login login process, do the following:

  1. Add the RunScript mechanism to the Jamf Connect loginwindow application by executing the following command.

    sudo authchanger -reset -JamfConnect -preAuth JamfConnectLogin:RunScript,privileged
  2. Add a script to the Jamf Connect Login package.
    For more information about modifying the Jamf Connect installer package, see the Customizing the Jamf Connect Login Package with Composer Knowledge Base article.

  3. Use your preferred configuration method to add script settings to your Jamf Connect configuration profile.

Login Script Settings

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.

Key

Description

Example

ScriptArgs

Script Arguments

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>

ScriptPath

Script Path

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>

Related Information

For related information about configuring a notify screen script, see Notify Screen.

Copyright     Privacy Policy     Terms of Use     Security
© copyright 2002-2020 Jamf. All rights reserved.