Assign Policies to Teams with Groups
Groups decide which policy each person gets: match on AD group, hostname, e-mail domain or a key set by IT. Groups are checked by priority, the first match wins.
Before you start
A group links people and PCs to one policy. ZeusLock checks the groups in order of their Priority (lowest number first) and applies the policy of the first group that matches; policies never merge. Anyone no group matches gets the Default Policy. Create the policy first (Create & Manage Policies). You need the Admin role.
Create a group
- Open Policies → tab Groups, click New group.
Result: the window New group opens.
- Fill in Name, choose the Assigned policy, and set Priority (for example
10; a lower number is checked first).Result: the fields are filled; Assigned policy is required.
- Under Membership matchers, click a matcher button (table below) and type its value, for example
+ hostname_regex→^LT-FIN-. Add more matchers if needed: one match is enough.Result: each matcher shows as a line with an on box (untick it to pause the matcher) and ✕ to remove it.
- Click Save.
Result: the group appears on the Groups tab with its priority. PCs pick up the new policy within about 10 minutes, without a restart.
- Open the tab People.
Result: each person shows Matched group, Effective policy and Via (the matcher that placed them).
The matchers
| Button | Value | Matches when |
|---|---|---|
+ directory_group | An AD group from the list | The Windows user belongs to that Active Directory group (matched by SID). The list fills with the groups ZeusLock has seen on your PCs. |
+ hostname_regex | A regular expression, e.g. ^LT-FIN- | The PC name matches it. |
+ email_domain | e.g. @contractor.example.com | The person's e-mail address known to ZeusLock ends with it. |
+ override_key | A word of your choice, e.g. finance | IT has set the same value as GroupKey on the PC (see below). Not case-sensitive. |
+ directory_attribute | {"attr":"department","equals":"Finance"} | The person's directory attribute has that value. |
Set an override key on PCs
The override key works with any management tool and does not need Active Directory. Push this value with the same tool you use for ServerUrl and LicenseKey:
# Windows (Group Policy registry item, REG_SZ)
HKLM\SOFTWARE\Policies\ZeusLock GroupKey = finance
# macOS (configuration profile, domain com.zeuslock.agent)
GroupKey = finance
# Linux (/etc/zeuslock/agent.conf)
GroupKey=finance
Result: after the agent restarts, the People tab shows override_key:finance in Via for people on those PCs.
Known limits
- The Priority field inside a policy has no effect. Only the group priority decides.
- The desktop agent 1.0.46 does not report the department, so a
directory_attributematcher ondepartmentdoes not match agent users. Use an AD group, the hostname or an override key instead.- The AD group list is filled from Windows PCs. On Mac and Linux, use the hostname or an override key.
- The matcher buttons and the Via column show technical names (
hostname_regex…) in every dashboard language.
If something fails
| Problem | What to do |
|---|---|
| A person lands in the Default group. | No matcher matched. Compare their PC name, e-mail and AD groups on the People tab with your matcher values. |
| A person gets the wrong team's policy. | Another group with a lower priority number matches first. Change the priorities. |
| (no AD groups discovered yet) in the list. | No Windows PC in an AD domain has reported yet. Wait for one to check in, or use another matcher. |
| No matchers — this group matches nobody. | Add at least one matcher and save. |
| A change has not reached a PC after 10 minutes. | Check that the PC is Online on the Agents page, then restart the agent. |