Action Preference Key Reference

Jamf Connect Documentation

Solution
Application
Jamf Connect
Content Type
Technical Documentation
Utilities & Services
ft:locale
en-US

Within the com.jamf.connect.actions domain, the following preference keys determine the behavior of the menu. The only required part of each item is the name; all other parts are optional. Consider the following when creating menu bar items:

  • The result of any command can be passed on to the next. Using <<result>> as a command option will replace it with the result of the previous command.

  • true or false results are not passed to the next command.

  • Adding true or false at the end of the command will cause that command to run only if the previously run command returns accordingly. For example, using alertTrue as the command name will run the alert command only if the previously run command returns true.

Note:

The result state is persistent, allowing multiple commands to be designated to run or not run depending on a single result. For example, if a result of true is passed to a sequence commands with false modifiers appended to their command names, none of those commands would be run.

Global Preferences

The following table includes the global preferences for a custom menu bar action configuration profile.

Setting

Description

Type

MenuIcon

Determines if the action menu will display a status icon (green, yellow, or red)

Note:

MenuIcon will display a green, yellow, or red icon next to the main Action menu based upon the highest degree of alert among all items in the submenu. For example, if you have any visible submenu actions displaying a red icon, the main menu will display a red icon. If any visible submenu actions display a yellow icon and none display red, the main menu item will display a yellow icon.

Boolean

MenuText

When set to true, Self Service+ will use the result of the command as the text of the menu item.

Note:

MenuText requires a command to return a result of <<menu>> followed by your menu. The last command to return a result containing <<menu>> will determine what the menu title is.

Boolean

Action Content

Setting

Description

Type

Name

(Required) The name of the action

String

Title

The text used to display the item in the menu bar

Note:

If unspecified, the Name will be used as the title.

Dictionary

Show

Determines if the item is displayed in the menu or not

Note:

All commands in the Show command must return true for the menu item to display.

Array

Action

Contains the action.

Array

Post

Determines what happens after the action is run.

Array

GUID

The unique ID for the action

String

Connected

Determines if the action set should only be run when connected to an Active Directory domain

Boolean

Timer

Length in minutes between executing the action

Integer

ToolTip

The text displayed when hovering over a menu item

String

Separator

Creates a visual separator bar in the menu bar

Commands

Self Service+ has built-in commands that can be used to execute action items. Consider the following about commands:

  • All options are strings.

  • All commands can return results.

  • Results do not persist between commands.

  • CommandOptions support the standard Self Service+ variables such as <<domain>>, <<user>>, and <<email>>.

  • Commands are case sensitive.

Command

Function

Command Options

path

Executes a binary at a specific file path

The path to execute

app

Opens an application at a specific file path

The path of the application to open

url

Opens a URL in the user's default browser

The URL to open

ping

Pings a host

The host to ping

adgroup

Determine if the current user is a member of an Active Directory group

The group to test

alert

Displays a modal dialog to the user

 

The alert text

Note:

If the command options are blank or are either "true" or "false", no alert will display. You can use this to show only errors.

notify

Displays a notification in the notification center

 

The notification text

Note:

If the command options are blank or are either "true" or "false", no notification will display. You can use this to show only errors.

false

A command that always returns false. This could be used to clear previous results in a command set

Text

true

A command that always returns true. This could be used to clear previous results in a command set

Text