Dynamic group based on app existing/notSolved

Participant
Discussion
3 weeks ago Feb 05, 2026

Is there a way to create a dynamic group with the If “random.app” exist, then run this script.
I cant locate it

and the second part is , how to we blocklist an app? to maybe use this option
Screenshot 2026-02-02 at 2.14.36 PM.png

Replies (1)

Marked SolutionPending Review
Hexnode Expert
3 weeks ago Feb 05, 2026
Marked SolutionPending Review

Eden:

Hey @jiggieman, thanks for reaching out.

Just to make sure I’m on the same page. Are you looking to automatically add a Mac to a dynamic group if a specific app like random.app is already installed on the device, and then trigger a script once the device becomes part of that group?

If that’s the requirement, this isn’t something Hexnode supports at the moment. Dynamic groups can’t currently evaluate app presence as a condition. I can raise this internally with the team to check if it’s something we can consider going forward.

If I’ve misunderstood your use case, feel free to clarify.

Regarding blocklisting apps on macOS, this can be done using a Blocklist/Allowlist policy.

  1. Go to Polices > Device Policies > New Policy > Create a new custom Policy > macOS.
  2. Under App Management, select Blocklist/Allowlist and click Configure.
  3. Choose the Blocklist button.
  4. Click + Add to include an app or a group of apps to be blocklisted. You can block enterprise apps, App Store apps, or VPP apps on macOS devices. After selecting the required apps, click Done.
  5. Next, open Policy Targets and associate the policy with the required devices, device groups, users, user groups, or domains.
  6. Save the policy to apply the restrictions.

If you have any follow up questions, let me know. Happy to help.

Cheers
Eden Pierce
Hexnode

Save