Is regex automation possible in Hexnode?Solved

Participant
Discussion
1 week ago Mar 07, 2026

As the title mentioned, is regex automation possible in Hexnode?

Replies (5)

Marked SolutionPending Review
Participant
1 week ago Mar 07, 2026
Marked SolutionPending Review

I’m pretty sure I saw regex used in the macOS password policy while configuring it last week. I remember it clearly because I customized the password requirements using a regex pattern. You might want to check that section.

Marked SolutionPending Review
Participant
1 week ago Mar 08, 2026
Marked SolutionPending Review

What exactly are you trying to automate? I don’t think regex directly runs automations by itself. But it can definitely help identify devices or extract specific values, which you can then use as conditions for automation rules.

Marked SolutionPending Review
Participant
7 days ago Mar 09, 2026
Marked SolutionPending Review

Got it. That actually makes sense. I was thinking regex could directly start an automation rule, but using it to extract values first sounds more realistic.

Marked SolutionPending Review
Hexnode Expert
7 days ago Mar 09, 2026
Marked SolutionPending Review

Hi @amelia-smith,

Regex can support automation workflows in Hexnode, but it does not directly trigger automation actions. Instead, it is typically used to extract specific values from device data, which can then be used for Dynamic Groups or Custom Attributes that automation rules can target.

This usually follows a two-step approach.

Step 1: Extract data using Regex in a Custom Script

  1. Navigate to Manage > Select device(s) > Actions > Execute Custom Script.
  2. Upload a script that retrieves device information (such as hostname or system details).
  3. Enable Store output in custom attribute option.
  4. Select the custom attribute where the value should be saved.
  5. Enter a regex pattern to extract the relevant part of the script output.

Step 2: Create a Dynamic Group

  1. Navigate to Manage > Device Groups > New Dynamic Group.
  2. Enter the name and description (optional) for the dynamic group.
  3. Choose the custom attribute populated by the script as column under condition filters.
  4. Set the comparator to Is or Contains.
  5. Enter the value.

Devices matching this value will automatically be grouped and can then be targeted with policies, apps, or automation rules.

Please try this out, and let us know if there are any further questions.

Regards,
Sienna Carter
Hexnode UEM

Marked SolutionPending Review
Participant
6 days ago Mar 10, 2026
Marked SolutionPending Review

Understood. That clears things up. Thanks for the detailed explanation!

Save