EPM - MacOS EPM Agent Uninstall CyberArkEPMUninstall -full command cannot delete "_cyberarkepm" user.

EPM - MacOS EPM Agent Uninstall CyberArkEPMUninstall -full command cannot delete "_cyberarkepm" user.

158
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 16:05 PM


Symptom


MacOS EPM Agent Uninstall  CyberArkEPMUninstall -full command cannot delete "_cyberarkepm" user.

'sudo /Applications/CyberArk\ EPM.app/Contents/Helpers/CyberArkEPMUninstall -full' returns this message:

Agent is not protected.
Remove Endpoint Security extensions
Remove launchd agents
Remove launchd daemons
Remove kext
Remove authorization rights
Remove PAM modules
Remove sudoers settings
Remove Finder Extension
Remove files and directories
Remove users and groups

Failed to delete '_cyberarkepm': Error Domain=com.apple.OpenDirectory Code=4001 "Operation was denied because the current credentials do not have the appropriate privileges." UserInfo={NSUnderlyingError=0x60000256c8a0 {Error Domain=com.apple.OpenDirectory Code=4001 "Disallowed by sandbox" UserInfo={NSDescription=Disallowed by sandbox}}, NSLocalizedDescription=Operation was denied because the current credentials do not have the appropriate privileges., NSLocalizedFailureReason=Operation was denied because the current credentials do not have the appropriate privileges.}

Remove engine configuration
Remove preferences

Idira EPM is uninstalled


Environment


22.1;22.4;22.5;22.6;22.8 EPM MacOS EPM

 


Cause


This is a known bug due to Apple changes (open Apple bug status:FB10032922).
This is not a Idira bug and is only available to Apple Developers.


Resolution


Workaround command:
sudo sysadminctl -deleteUser "_cyberarkepm"
The error user will be fully deleted and you should afterwards, be able proceed to initiate the installation of the macOS EPM agent.


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001JNKCA2&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail