Deploying ThreatLocker to MAC with Kandji MDM

5 min. readlast update: 05.12.2025

Note: For organizations deploying to several endpoints, ThreatLocker recommends using a staggered deployment approach. Organizations that deploy to several endpoints at once may experience increased bandwidth usage as macOS core and application definitions are downloaded to each endpoint. QOS can be used to limit bandwidth to macapps.threatlocker.com 

Below, you will find the steps for MAC deployment through Kandji. The blueprint we will be creating can be applied to devices that are already enrolled within your Kandji profile, or to new ones. 

Creating a Blueprint 

Navigate to ‘Blueprints’ using the left-hand menu within your Kandji portal. 

Picture 

Within the ‘Blueprints’ page, select the ‘+ Add Blueprint’ button located in the top right-hand corner of the page. 

Picture

A popup window titled ‘Create Blueprint’ will now be displayed. Select ‘Start from scratch’ from the available selections.

Picture

Now, enter a name for your Blueprint. You can optionally add a description as well. Once all fields have been filled out to your liking, select ‘Create Blueprint’ at the bottom of the page. 

Picture

You will now be able to view your newly created Blueprint from within the Blueprints page. 

Picture 

Creating a Custom Profile to Deploy ThreatLocker 

Note: The Configuration Profile needs to be installed onto the Mac devices before the script is run. Otherwise, permissions for the agent must be granted manually. 

Navigate to ‘Library’ using the left-hand menu within your Kandji portal. 

Picture 

Now in ‘Library’ select the ‘+ Add Library Item’ located in the top right-hand corner of the page. 

Picture

In the ‘Add Library Item’ page, select ‘Custom Profile’. This can be found under the ‘General’ section or by utilizing the search bar provided. 

Picture

After selecting ‘Custom Profile, select the ‘Add and configure’ button, which is located at the bottom right-hand side of the page. 

Picture

Now, you can configure your custom profile. Create a title for the profile. You can also remove everything but ‘Mac’ from the ‘Install on’ section. 

Picture

Next, select the ‘+ Assign’ button to the right of ‘Blueprint’ to assign the Blueprint you have created to this profile. 

Picture 

At the bottom of the page, you will see a ‘Profile Details’ section. Select the link provided below to download the ThreatLocker Configuration Profile: 

Once this file is unzipped, you will be provided with a .mobileconfig file that can be uploaded into the space provided. Drag the file into the area or select ‘click to upload’ to locate the .mobileconfig file from your machine. 

Picture

Once the ThreatLocker Configuration Profile is uploaded, you will see it populate on the page. Select the ‘Save’ button in the bottom right corner of the screen to save and add your custom profile to the Library. 

Picture

Creating a Custom Script to Deploy ThreatLocker 

Navigate to the ‘Library’ page using the left-hand menu. 

Picture 

Select the ‘+ Add Library Item’ button located in the top right-hand side of the page. 

Picture

In the ‘Add Library Item’ page, select ‘Custom Scripts. This can be found under the ‘General’ section or by utilizing the search bar provided. 

Picture

Once ‘Custom Scripts’ has been chosen, select the ‘Add and configure’ button that is found in the bottom right-hand side of the page. 

Picture

From within the Custom Scripts configuration page, add a title for your script. Once done, use the ‘+ Assign’ button to the right of ‘Blueprint’ to assign the same Blueprint to this script as you did the profile. 

Picture

Within the settings section, you can keep the ‘Execution Frequency’ set to ‘Run once per device’. You also do not need to enable ‘Self Service’. 

Picture

You will now see a section titled ‘Script Details’. This section offers you an area to insert a script into the provided field. To find this script, log into your ThreatLocker portal and navigate to the ‘Install Computer’ button. This button can be found in the top right-hand corner of every page. 

Picture 

It can also be found in the top left corner of the ‘Devices’ page. 

Picture 

On the ‘Download Installer’ popup screen, change the deployment method from ‘Manual Deployment’ to ‘MDM (macOS)’. Select the ‘Installation Script’ button. 

Picture

Selecting the ‘Installation Script’ button will open a new web page with the script on it. Copy and paste this script into the provided section of the Kandji page. 

Picture

Near the beginning of the script, you will notice that the value of the GroupKey is incorrect. 

Picture  

This MUST be entered manually. If you do not know how to locate the GroupKey for the organization you will be deploying your machines to, please consult the following article: 

Once the correct group key has been entered, select the save button at the bottom of the page. 

Picture

Adding a Profile or Script to an Existing Blueprint 

If you already have an existing Blueprint that you would like to add the ThreatLocker Configuration Profile or MDM script to, start by navigating to the ‘Blueprints’ page using the left-hand menu. 

Picture 

Select your Blueprint from within the page. 

Picture

Now, within the page for your chosen Blueprint, select the ’Edit assignments’ button shown on the far-right side of the page. 

Picture

Selecting this button will populate a list of all library items on your account. From here, you can either search for your newly created custom profiles and scripts, or search for them manually. Click and drag your choices, then select the ‘Save’ button once this is done. 

Picture 

Picture

This will now be added to your existing Blueprint. 

Enrolling a Device with a New Blueprint to Deploy ThreatLocker 

To enroll a device, using the left-hand menu on the page, select ‘Enrollment’. 

Picture 

Within the ‘Enrollment’ page, select ‘Manual Enrollment’. 

Picture 

From here, you will see that a link is provided for the enrollment portal, which is unique to your account. When a user navigates to this enrollment link, they will be asked to enter an enrollment code. This enrollment code is specific to each Blueprint within your environment. Once the code is entered, users will receive a profile download for the Blueprint the code was attached to. 

Once this is downloaded and the device is visible within your Kandji portal, the ThreatLocker download will begin, and you should soon see it within your ThreatLocker portal as well.

Was this article helpful?