This document provides information on how to obtain the necessary criteria to be used during the creation of an access policy.
Application Name
The application name is a value that can be located, and the name displayed through Finder may not be the original application name. Use one of the following options to locate the application name:
Option 1: Finder
- Right-click on the application to display the context menu.
- Click on the Get Info option.
- In the Name & Extension field, copy the application name.
Option 2: Command line
- Open the Terminal application.
- Run the following command:
defaults read /app_path/app.app/contents/info.plist CFBundleDisplayName.
Replace the path /app_path/app.app with your application's path.
Bundle identifier
- Open the Terminal application.
- Run the following command:
mdls -name kMDItemCFBundleIdentifier /app_path/app.app.
Replace the path /app_path/app.app with your application's path.
Code signature
- Open the Terminal application.
- Run the following command:
codesign -dv -r- /app_path/app.app 2>&1 | grep "designated =>".
- Replace the path
/app_path/app.appwith your application's path. - The command
2>&1 | grep "designated =>"is optional and responsible for filtering only the code signature. If desired, run the command:codesign -dv -r- /app_path/app.appand find the code signature visually through the command output.
Path
Option 1: Finder
- Left-click on the application.
- With the application selected, press the keys:
Command + Option + Cto copy the application path to the clipboard.
Option 2: Command line
- Open the Terminal application.
- Run the following command:
realpath /app_path/app.app.
Replace the path /app_path/app.app with your application's path.
Developer identity
Developer identities are unique identifiers that relate to a development team. To obtain the developer identity, see the following step-by-step:
- Open the Terminal application.
- Run the following command:
codesign -dv -r- /app_path/app.app 2>&1 | grep "TeamIdentifier".
Replace the path /app_path/app.app with your application's path.
Version
The installed application version can be found through the visual interface or command line. Use one of the following options to locate the application version:
Option 1: Finder
- Right-click on the application to display the context menu.
- Click on the Get Info option.
- In the General field, copy the application version.
Option 2: Command line
- Open the Terminal application.
- Run the following command:
mdls -name kMDItemVersion /app_path/app.app.
Replace the path /app_path/app.app with your application's path.
SHA256
- Open the Terminal application.
- Run the following command:
shasum -a 256 /app_path/app.app/Contents/MacOS/ExecutableName.
Replace the path /app_path/app.app with your application's path.
SHA512
- Open the Terminal application.
- Run the following command:
shasum -a 512 /app_path/app.app/Contents/MacOS/ExecutableName.
Replace the path /app_path/app.app with your application's path.
Executable name
The executable name can be found through the visual interface or command line. Use one of the following options to locate the executable name:
Option 1: Finder
- Right-click on the application to display the context menu.
- Click on the Show Package Contents option.
- Access Contents > MacOS, locate the executable and copy its name.
Option 2: Command line
- Open the Terminal application.
- Run the following command:
find /app_path/app.app/Contents/MacOS -perm +111 -type f.
Replace the path /app_path/app.app with your application's path.
Application Category
- Open the Terminal application.
- Run the following command:
mdls -name kMDItemAppStoreCategoryType /app_path/app.app.
- Replace the path
/app_path/app.appwith your application's path. - Use the complete returned value as the application category.
User
EPM macOS uses the POSIX username for access policy rules. There are several ways to obtain it, but the two most useful forms are with the whoami and dscl commands, where the first option provides only the current user and the second provides all system users. Use one of the following options to locate users:
Current user
- Open the Terminal application.
- Run the following command:
whoami.
All system users
- Open the Terminal application.
- Run the following command:
dscl . list /Users.
Arguments
Arguments are everything that comes after the program name. To know which arguments can be used for a command, consult the program manual through the man <program> command or through the help command <program> help.