- Home
- Solutions
- Zluri Agents
- How to deploy Zluri Mac Agent through Jamf Pro?
How to deploy Zluri Mac Agent through Jamf Pro?
To deploy Mac Agent through JAMF, You need to have an active Jamf Integration. To integrate Jamf with Zluri, Please navigate to 'Sources->Integrations' to connect Jamf with Zluri. It takes 24-48 hours for the sync to complete. Once the first sync is complete, you can proceed with the below steps.
Please follow the steps below in order to integrate the Zluri scripts and .pkg into the Jamf Pro.
Login to the jamfpro https://[instance].jamfcloud.com/
Visit 'Settings' at the bottom right corner, Search 'Category' in the search box and create a new category, name such as zluri-orgname. You can follow the steps here to create a category.
Create a new policy. You can follow the documentation here to create a policy.
Now, to add the scripts, follow the Jamf pro documentation:
Ensure that you name the preinstall script “preinstall” and paste the script’s contents into the scripts area.
ZLURI_PERMISSION=$(sqlite3 "/Library/Application Support/com.apple.TCC/TCC.db" "SELECT COUNT(*) FROM access WHERE service='kTCCServiceScreenCapture' AND client='com.zluri' AND auth_value=2;")
if [[ "$ZLURI_PERMISSION" -gt 0 ]] then exit 0
else echo "Permission is not there for Zluri"
fi
exit 0
Choose the Category as the category created
Now, under Options, choose Priority as Before
Now repeat the same steps for postinstall script
UUID=$(system_profiler SPHardwareDataType | awk '/UUID/ { print $3; }')
#assigning random org_token
ORG_TOKEN=<org_token>
# assigning mdm type
TYPE="jamf"
/Applications/zluri.app/Contents/MacOS/zluri --UUID="$UUID" --org_token="$ORG_TOKEN" --mdm-mac-type="$TYPE"Replace the org_token with the token provided to you by the Zluri customer success team.
Name the script as post install
Choose the Priority under options pane as “After”.
Save the settings.
Now, Choose Policies from the left-menu, choose the Policy you created in Step 1
Under Options, in Packages, Choose Distribution point as Cloud distribution point as shown in the screenshot above.
Select the package that you uploaded in Step 4-d.
Then, under the Scope pane, set All Computers under Target Computers and All Users under Target Users and Save.
Again, go to Options under the Policies, Click on Scripts.
Select preinstall script, set the priority to Before and for post install select After.
And finally, in the General pane, Ensure to click the Enabled checkbox
Enable the Recurring Check-in checkbox to ensure the policy runs every 15 mins
Set the Execution Frequency to Ongoing
Now that you’ve performed all the steps properly, go to Policies from the left-sidebar menu;
Here, you’ll see an overview of the policy (here ZLURI DA MDM) and the scripts and .pkg in the right order to execute.
The above steps will ensure that the Policy runs on the targeted devices and runs the preinstall.
After following the above steps, the policy is ready to install the Zluri app in the targeted devices.
Note: Please note that the updated logs of policy run in the targeted systems might be delayed.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article
To deploy Mac Agent through JAMF, You need to have an active Jamf Integration. To integrate Jamf with Zluri, Please navigate to 'Sources->Integrations' to connect Jamf with Zluri. It takes 24-48 hours for the sync to complete. Once the first sync is complete, you can proceed with the below steps.
Please follow the steps below in order to integrate the Zluri scripts and .pkg into the Jamf Pro.
Login to the jamfpro https://[instance].jamfcloud.com/
Visit 'Settings' at the bottom right corner, Search 'Category' in the search box and create a new category, name such as zluri-orgname. You can follow the steps here to create a category.
Create a new policy. You can follow the documentation here to create a policy.
Now, to add the scripts, follow the Jamf pro documentation:
Ensure that you name the preinstall script “preinstall” and paste the script’s contents into the scripts area.
ZLURI_PERMISSION=$(sqlite3 "/Library/Application Support/com.apple.TCC/TCC.db" "SELECT COUNT(*) FROM access WHERE service='kTCCServiceScreenCapture' AND client='com.zluri' AND auth_value=2;")
if [[ "$ZLURI_PERMISSION" -gt 0 ]] then exit 0
else echo "Permission is not there for Zluri"
fi
exit 0
Choose the Category as the category created
Now, under Options, choose Priority as Before
Now repeat the same steps for postinstall script
UUID=$(system_profiler SPHardwareDataType | awk '/UUID/ { print $3; }')
#assigning random org_token
ORG_TOKEN=<org_token>
# assigning mdm type
TYPE="jamf"
/Applications/zluri.app/Contents/MacOS/zluri --UUID="$UUID" --org_token="$ORG_TOKEN" --mdm-mac-type="$TYPE"Replace the org_token with the token provided to you by the Zluri customer success team.
Name the script as post install
Choose the Priority under options pane as “After”.
Save the settings.
Now, Choose Policies from the left-menu, choose the Policy you created in Step 1
Under Options, in Packages, Choose Distribution point as Cloud distribution point as shown in the screenshot above.
Select the package that you uploaded in Step 4-d.
Then, under the Scope pane, set All Computers under Target Computers and All Users under Target Users and Save.
Again, go to Options under the Policies, Click on Scripts.
Select preinstall script, set the priority to Before and for post install select After.
And finally, in the General pane, Ensure to click the Enabled checkbox
Enable the Recurring Check-in checkbox to ensure the policy runs every 15 mins
Set the Execution Frequency to Ongoing
Now that you’ve performed all the steps properly, go to Policies from the left-sidebar menu;
Here, you’ll see an overview of the policy (here ZLURI DA MDM) and the scripts and .pkg in the right order to execute.
The above steps will ensure that the Policy runs on the targeted devices and runs the preinstall.
After following the above steps, the policy is ready to install the Zluri app in the targeted devices.
Note: Please note that the updated logs of policy run in the targeted systems might be delayed.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article