- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
10-24-2022 01:43 PM
Hello out there!
Has anybody been able to deploy the EPM agent via an Intune .PKG to MacOS devices?
I'm having trouble figuring out the right app settings for it to actually install.
10-24-2022 01:53 PM
Hello @Terry Duckett,
Take a look here and see if it helps you, this is an example using JAMF, im not sure if it also works for Intune.
Documentation --> https://docs.cyberark.com/Product-Doc/OnlineHelp/EPM/Latest/en/Content/Installation/macOS-InstallAge...
How to --> EPM - How to configure JAMF for EPM Agent distribution (force.com)
PS: It only works if you are using the SaaS solution
10-24-2022 01:53 PM
Hello @Terry Duckett,
Take a look here and see if it helps you, this is an example using JAMF, im not sure if it also works for Intune.
Documentation --> https://docs.cyberark.com/Product-Doc/OnlineHelp/EPM/Latest/en/Content/Installation/macOS-InstallAge...
How to --> EPM - How to configure JAMF for EPM Agent distribution (force.com)
PS: It only works if you are using the SaaS solution
10-24-2022 01:53 PM
Hello @Terry Duckett,
Take a look here and see if it helps you, this is an example using JAMF, im not sure if it also works for Intune.
Documentation --> https://docs.cyberark.com/Product-Doc/OnlineHelp/EPM/Latest/en/Content/Installation/macOS-InstallAge...
How to --> EPM - How to configure JAMF for EPM Agent distribution (force.com)
PS: It only works if you are using the SaaS solution
10-24-2022 01:53 PM
Hello @Terry Duckett,
Take a look here and see if it helps you, this is an example using JAMF, im not sure if it also works for Intune.
Documentation --> https://docs.cyberark.com/Product-Doc/OnlineHelp/EPM/Latest/en/Content/Installation/macOS-InstallAge...
How to --> EPM - How to configure JAMF for EPM Agent distribution (force.com)
PS: It only works if you are using the SaaS solution
10-24-2022 02:02 PM
We are on SaaS. I will review this again, but I have looked at it once already.
I've got it to where Intune says the app installs, however its not when I look at the Mac we are testing on.
10-26-2022 12:25 AM
@Terry Duckett JAMF is the best tool/platform to use for MacOS. Intune can also cater to MacOS endpoints but it could be limited only to specific apps. Hopefully, EPM could be added in the near future.
Let us know if you found a workaround 🙂
10-26-2022 05:41 AM
I'm trying lol. Intune supports PKG files now. However, getting it to install from Intune is where I'm stuck.
I get "One or more apps contain invalid BundleIDs" (pictured below). If I remove all the bundle IDs except for the main one (top ID in the picture), it reports that the app successfully installs, however it does not.
10-26-2022 03:09 PM
@Terry Duckett sounds like you need Intune tech support instead. Have you tried reaching out to them? Also, share to us if they resolved the issue 🙂
10-27-2022 11:43 AM
Just a quick update, I am close to having this figured out. Translating JAMF to Intune is a bit confusing in some parts, but I am wood-shedding it out. I'll post the details once I know its working properly.
11-01-2022 06:47 AM
Ok, I was able to get this going. I will break this up into a few posts. Let it be known that while I have used Mac's in the past, this is my first time really managing them with Intune ;). So there could be better ways of doing any of what I am reporting!
First here is what I discovered:
I followed the CyberArk instructions for creating a .PKG file. Intune natively supports deploying .PKG files as of today (11/1/2022). However, it would never report that it installed on our test Macbook. It would error out, giving "One or more apps contain invalid BundleIDs."
With Linux (and Mac's) you can run a terminal command named "file" to view what type of file the system thinks said file is. Here is a screenshot comparing a .PKG file for Yubico software against the .PKG file I made following the CyberArk instructions:
I've highlighted the output of the command for each .PKG file, Yubico in red and CyberArk in green. Notice how the CyberArk.pkg file has a longer description, mainly "contains zlib compressed data?" Well, from what I have seen so far at least, "zlib compressed data" is typically only found in .DMG file types. I believe, without any real proof, that this is what was causing Intune to not be able to natively deploy this .PKG file.
11-01-2022 07:02 AM
Now to how it works. I tried a few separate ways to mess with the PKG, but that really went nowhere. On a random Google search, I came across a link where somebody at Microsoft was discussing how to install Mac software with Intune via a bash script: Deploying macOS apps with the Microsoft Intune scripting agent - Microsoft Community Hub.
This ended up being most of the answer for me. I combined this with a few other policies for our Mac's (described below), and the software was installed via the script from Intune with no issues. I did have to modify the part of the script where it detects the file type from the metadata (PKG, DMG, etc) because of the extra "zlib compressed data" mentioned above:
# We can't tell what this is by the file name, lets look at the metadata
echo "$(date) | Unknown file type [$f], analysing metadata"
metadata=$(file "$tempfile")
if [[ "$metadata" == *"Zip archive data"* ]]; then
packageType="ZIP"
mv "$tempfile" "$tempdir/install.zip"
tempfile="$tempdir/install.zip"
fi
if [[ "$metadata" == *"xar archive"* ]] && [["$metadata" == *"zlib compressed data"* ]]; then
packageType="PKG"
mv "$tempfile" "$tempdir/install.pkg"
tempfile="$tempdir/install.pkg"
fi
if [[ "$metadata" == *"xar archive"* ]]; then
packageType="PKG"
mv "$tempfile" "$tempdir/install.pkg"
tempfile="$tempdir/install.pkg"
fi
if [[ "$metadata" == *"bzip2 compressed data"* ]] || [[[ "$metadata" == *"zlib compressed data"* && "$metadata" != *"xar archive"* ]]]; then
packageType="DMG"
mv "$tempfile" "$tempdir/install.dmg"
tempfile="$tempdir/install.dmg"
fiYou place the .PKG in an Azure Blob storage (or anywhere the file can be hosted really) and put the link in the script along with a few other user variables I changed to match CyberArk:
# User Defined variables
weburl="<Azure Blob Linke Goes Here>" # What is the Azure Blob Storage URL?
appname="CyberArkEPM" # The name of our App deployment script (also used for Octory monitor)
app="CyberArk EPM.app" # The actual name of our App once installed
logandmetadir="/Library/Logs/Microsoft/IntuneScripts/installCyberArkEPM" # The location of our logs and last updated data
processpath="/Applications/CyberArk EPM.app/Contents/MacOS/CyberArk EPM" # The process name of the App we are installing
terminateprocess="false" # Do we want to terminate the running process? If false we'll wait until its not running
autoUpdate="true" I believe that's all the parts of the script I had to modify.
11-01-2022 08:05 AM
The last part to figure out was 2 Intune configuration profiles:
For System Extensions, just create a configuration profile that allows the following system extensions:
For full disk access, I found a utility (Releases · jamf/PPPC-Utility (github.com)) that was made for helping build configuration profiles with JAMF but works equally as well for Intune.
I don't see a way to attach a file here, so here is the code for this (note the "COMPANY NAME GOES HERE" that you would need to update):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadDescription</key>
<string>CyberArk - Disk Access</string>
<key>PayloadDisplayName</key>
<string>CyberArk - Disk Access</string>
<key>PayloadIdentifier</key>
<string>9B623012-BE52-4F7D-ABDE-A47FD6561D47</string>
<key>PayloadOrganization</key>
<string>COMPANY NAMES GOES HERE</string>
<key>PayloadType</key>
<string>com.apple.TCC.configuration-profile-policy</string>
<key>PayloadUUID</key>
<string>0E0ED548-7525-4020-B357-78C827BBBDAC</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>Services</key>
<dict>
<key>SystemPolicyAllFiles</key>
<array>
<dict>
<key>Authorization</key>
<string>Allow</string>
<key>CodeRequirement</key>
<string>identifier "com.cyberark.CyberArkEPM" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ or certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = DF8U2CCCD8</string>
<key>Comment</key>
<string></string>
<key>Identifier</key>
<string>com.cyberark.CyberArkEPM</string>
<key>IdentifierType</key>
<string>bundleID</string>
</dict>
<dict>
<key>Authorization</key>
<string>Allow</string>
<key>CodeRequirement</key>
<string>identifier "com.cyberark.CyberArkEPMEndpointSecurityExtension" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ or certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = DF8U2CCCD8</string>
<key>Comment</key>
<string></string>
<key>Identifier</key>
<string>com.cyberark.CyberArkEPMEndpointSecurityExtension</string>
<key>IdentifierType</key>
<string>bundleID</string>
</dict>
</array>
<key>SystemPolicySysAdminFiles</key>
<array>
<dict>
<key>Authorization</key>
<string>Allow</string>
<key>CodeRequirement</key>
<string>identifier "com.cyberark.CyberArkEPMEndpointSecurityExtension" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ or certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = DF8U2CCCD8</string>
<key>Comment</key>
<string></string>
<key>Identifier</key>
<string>com.cyberark.CyberArkEPMEndpointSecurityExtension</string>
<key>IdentifierType</key>
<string>bundleID</string>
</dict>
</array>
</dict>
</dict>
</array>
<key>PayloadDescription</key>
<string>CyberArk - Disk Access</string>
<key>PayloadDisplayName</key>
<string>CyberArk - Disk Access</string>
<key>PayloadIdentifier</key>
<string>9B623012-BE52-4F7D-ABDE-A47FD6561D47</string>
<key>PayloadOrganization</key>
<string>COMPANY NAME GOES HERE</string>
<key>PayloadScope</key>
<string>System</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>E42691CD-133C-47E9-B971-A2FD5280B03C</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>Save this as a ".mobileconfig" file.
Deploy these FIRST, and then deploy the script to install the CyberArk .PKG file.
I hope this helps someone in the future. I was about to pull what hair I have left out getting this working ;).
11-02-2022 01:07 PM
One other note: Obviously, you want the configuration profiles to apply before the app installs. As of now, this isn't possible natively in Intune. To overcome this, I made an Azure RunBook that adds Mac's in Intune 4 hours after they are registered to an Azure AD Group. Then that group is assigned to the script.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

