- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
02-28-2025 02:07 AM
I created a policy to block certain command, its blocking for all user even if we run the command from MDM, is there any way to exclude root use from the block policy so the MDM can run the command
03-12-2025 04:16 AM
I've never done this before but used a few AI to get this response - not sure if it helps you - To exclude the root user from your block command policy on macOS in CyberArk Endpoint Privilege Manager (EPM), you can follow these steps:
By targeting specific users and not including the root user, you can effectively exclude the root user from the policy. This way, the MDM can run commands as the root user without being blocked by the policy.
If you need more detailed guidance, you can refer to the CyberArk documentation
1.Would you like any further assistance with this setup?
2:CyberArk Community1:CyberArk Documentation
but then i get this response below.
2:CyberArk Community1:CyberArk Documentation
Based on the knowledge sources provided, I understand you're trying to exclude the root user from a block command policy on macOS in CyberArk Endpoint Privilege Manager (EPM).
Currently, EPM's macOS policies have a limitation - you can only include users in policies, not exclude them. The exclusion option is only available for computers, not for users or groups. This is evident in the policy configuration structure where under Targets, you can specify users to include, but the exclusion options only apply to computers.
According to the documentation, for macOS policies:
"Currently, users and groups can only be included in macOS policies, not excluded." macOS policies
To work around this limitation, you have two potential approaches:
For your specific scenario with local accounts, you would need to specify the local username in the policy targeting. If you're using both local accounts and IdP accounts, you can target both types in your policies.
For more information on targeting users in macOS policies, you can refer to the macOS policies documentation.
03-03-2025 04:13 AM
I believe you would need to go to Policies - select Create Advanced policy and select MACOS, decide on the name of the policy and select Allow or Elevate depending on your needs, then you can add users or devices, then I assume you have already created an application and link it to this advanced policy. You have now targeted the policy -https://docs.cyberark.com/epm/25.3.0/en/content/policies/macospolicies-newui.htm.
03-03-2025 04:13 AM
I believe you would need to go to Policies - select Create Advanced policy and select MACOS, decide on the name of the policy and select Allow or Elevate depending on your needs, then you can add users or devices, then I assume you have already created an application and link it to this advanced policy. You have now targeted the policy -https://docs.cyberark.com/epm/25.3.0/en/content/policies/macospolicies-newui.htm.
03-03-2025 04:29 AM
Thank @Touseef-ur rehman , I have created Application group and added it to policy, I want to Exclude particular (root user) from the policy.
In policy, there is no option to exclude "user". I want to exclude certain user account which is common on all devices.
03-03-2025 05:17 AM
Im assuming you got a block policy already working but its blocking everyone right so i guess you would want to go into Exclude from Policy section in the Advanced Policy and click on Add for Computers in this Set and add the computers by clicking on the Add Computers button - apologies if that is not what your question was - if it's a a Intune/Jamf policy I think this will only work if the cyberark is picking up the events in the first place.
03-03-2025 05:17 AM
Im assuming you got a block policy already working but its blocking everyone right so i guess you would want to go into Exclude from Policy section in the Advanced Policy and click on Add for Computers in this Set and add the computers by clicking on the Add Computers button - apologies if that is not what your question was - if it's a a Intune/Jamf policy I think this will only work if the cyberark is picking up the events in the first place.
03-03-2025 05:37 AM
Is there any way to exclude a user account instead of computer?
I have added below executable command to block. CyberArk have Target as Computers and Users, but in Exclude it have only Computer. I need to allow the same executable command from Jamf policy (in script which will un as roo)In this case how I can achieve my goal?
03-03-2025 06:01 AM
Sorry just had to rethink this - If you target the policy by clicking on Edit for Users and Groups under Targets then by definition you're applying the policy to the users you want so [email protected] that means everyone else with epm is excluded from getting the policy. so you don't need to add users to the exlcude part, usually you do that when you have a policy you want to apply to all but exclude some users
03-03-2025 06:01 AM
Sorry just had to rethink this - If you target the policy by clicking on Edit for Users and Groups under Targets then by definition you're applying the policy to the users you want so [email protected] that means everyone else with epm is excluded from getting the policy. so you don't need to add users to the exlcude part, usually you do that when you have a policy you want to apply to all but exclude some users
03-10-2025 06:32 AM
Hi @Shri Sivakumaran C
It seems that @Touseef-ur rehman provided an answer to your question. Could you kindly let us know if this solution helped?
If so, please mark the answer as 'Select as Best' to assist other community members.
Thank you, Liad
03-12-2025 02:42 AM
Hi @Touseef-ur rehman
Thanks for your reply, We are using Mac device with local user account it not binded with AD or ldp. Also the "root" account is part of the local account. in this case if I use ./Username it will impact root account also right?
on my device local account is created as shrisiva but my idp account is siva.kumaran, what I have to mentioned for scope/target user?
03-12-2025 04:16 AM
I've never done this before but used a few AI to get this response - not sure if it helps you - To exclude the root user from your block command policy on macOS in CyberArk Endpoint Privilege Manager (EPM), you can follow these steps:
By targeting specific users and not including the root user, you can effectively exclude the root user from the policy. This way, the MDM can run commands as the root user without being blocked by the policy.
If you need more detailed guidance, you can refer to the CyberArk documentation
1.Would you like any further assistance with this setup?
2:CyberArk Community1:CyberArk Documentation
but then i get this response below.
2:CyberArk Community1:CyberArk Documentation
Based on the knowledge sources provided, I understand you're trying to exclude the root user from a block command policy on macOS in CyberArk Endpoint Privilege Manager (EPM).
Currently, EPM's macOS policies have a limitation - you can only include users in policies, not exclude them. The exclusion option is only available for computers, not for users or groups. This is evident in the policy configuration structure where under Targets, you can specify users to include, but the exclusion options only apply to computers.
According to the documentation, for macOS policies:
"Currently, users and groups can only be included in macOS policies, not excluded." macOS policies
To work around this limitation, you have two potential approaches:
For your specific scenario with local accounts, you would need to specify the local username in the policy targeting. If you're using both local accounts and IdP accounts, you can target both types in your policies.
For more information on targeting users in macOS policies, you can refer to the macOS policies documentation.
03-12-2025 04:16 AM
I've never done this before but used a few AI to get this response - not sure if it helps you - To exclude the root user from your block command policy on macOS in CyberArk Endpoint Privilege Manager (EPM), you can follow these steps:
By targeting specific users and not including the root user, you can effectively exclude the root user from the policy. This way, the MDM can run commands as the root user without being blocked by the policy.
If you need more detailed guidance, you can refer to the CyberArk documentation
1.Would you like any further assistance with this setup?
2:CyberArk Community1:CyberArk Documentation
but then i get this response below.
2:CyberArk Community1:CyberArk Documentation
Based on the knowledge sources provided, I understand you're trying to exclude the root user from a block command policy on macOS in CyberArk Endpoint Privilege Manager (EPM).
Currently, EPM's macOS policies have a limitation - you can only include users in policies, not exclude them. The exclusion option is only available for computers, not for users or groups. This is evident in the policy configuration structure where under Targets, you can specify users to include, but the exclusion options only apply to computers.
According to the documentation, for macOS policies:
"Currently, users and groups can only be included in macOS policies, not excluded." macOS policies
To work around this limitation, you have two potential approaches:
For your specific scenario with local accounts, you would need to specify the local username in the policy targeting. If you're using both local accounts and IdP accounts, you can target both types in your policies.
For more information on targeting users in macOS policies, you can refer to the macOS policies documentation.
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!

