IT and Security Tools Library · Endpoint protection
Defender for Endpoint device groups and RBAC
How to design device groups, tags and roles in Microsoft Defender for Endpoint so the right people see the right devices and automation fits each device’s business impact: concepts, tagging, building and ranking groups, classic and unified RBAC, personas, testing, remediation levels, failures to avoid and upkeep.
Prefer to have it done for you? IT Perfection provides Microsoft Defender for Business setup for companies in Irvine, Orange County and Los Angeles County.
Written by Ali Hassani, CISSP and C|CISO · 25+ years designing, securing and supporting business networks · Updated November 2026



Guides › IT and Security Tools Library › Endpoint protection › Device groups and RBAC
Where this tool sits in the IT toolset
- Discover
- Document
- Monitor
- Patch
- Scan
- Protect
- Log
- Investigate
Fact sheet
Turn device grouping into an access and response boundary
In Microsoft Defender for Endpoint, device groups decide two things that matter a great deal during an incident: which people can see and act on which devices, and how much Defender may fix on its own. Microsoft describes device groups as a way to limit access to alerts and data to specific Microsoft Entra user groups with assigned roles, to configure different automatic remediation settings for different sets of devices, and to filter the device list during investigations.
Done well, a help desk technician sees workstations but not domain controllers, a managed service provider can act only on the devices it is paid to watch, and servers are never remediated automatically without someone approving it. Done badly, everyone sees everything, automation changes servers in the middle of the working day, or a device silently drops into a group nobody is watching. This guide walks through the design, the build, the tests and the upkeep.
Device groups are supported in Defender for Endpoint Plan 1 and Plan 2. Microsoft Defender for Business manages device groups differently, in a simplified way; if you are on Microsoft 365 Business Premium, read Microsoft’s Defender for Business guidance as well.
Keep tags, groups, roles and policies separate
Tags are descriptive. Device groups are built from rules that often use tags. Roles grant permissions and are linked to device groups through Microsoft Entra groups. Policies such as antivirus settings and attack surface reduction rules are a separate layer, usually assigned from Intune. Mixing these up causes the most confusing problems: for example, assuming that tagging a device as SERVER changes its antivirus policy, or that removing a person from a role also removes their access to a device group that has no Entra group assigned.
| Question | Answered by |
|---|---|
| What kind of device is this? | Tags and device properties |
| Which bucket does it belong to for access and automation? | Device group, by matching rule and rank |
| Who can see and act on that bucket? | Roles assigned to Entra groups, linked to the device group |
| How is the device configured? | Security policies, usually from Intune |
Choose grouping dimensions that stay stable
Groups only stay accurate if the attributes they rely on stay accurate. Choose dimensions that change rarely and that someone owns.
| Dimension | Good for | Watch out for |
|---|---|---|
| Role (server, workstation, domain controller, kiosk) | Automation level and access | Needs reliable tagging or naming |
| Sensitivity (finance, executives, regulated data) | Tighter approval and access | People change roles; review tags |
| Owner (site, business unit, client) | Delegated access for local IT or a provider | Mergers and moves |
| Operating system | Separating servers from clients | Upgrades change matches |
| Domain | Multi-domain or acquired environments | Cloud-only devices may have none |
| Device name pattern | Strong naming standards | One renamed device falls out silently |
For a small or mid-sized business, three to six groups are usually enough: domain controllers, other servers, sensitive users, standard workstations, and perhaps a group per site or per managing provider. More groups mean more ranking decisions and more chances for a device to land in the wrong place.
Tagging devices
Microsoft supports several ways to tag devices. Choose one primary method so you always know where a tag came from.
| Method | Platforms | Notes from Microsoft’s guidance |
|---|---|---|
| Portal (Manage tags) | All supported | Good for a few devices; tags appear in the device inventory |
| Dynamic rules (asset rule management) | All supported | Assign and remove tags automatically from device properties; update roughly every hour |
| Registry key DeviceTagging, value Group | Windows | Only one tag; syncs once a day or on restart; clear the value to remove |
| Intune custom profile (OMA-URI) | Windows 10 and later | Central deployment of the registry-based tag |
| Security settings management or configuration profile | macOS, Linux | Through endpoint security policy or a plist or JSON profile |
| App configuration policy in Intune | iOS, Android | For mobile devices |
| API | All supported | For automation and integration |
Dynamic rules are the most reliable for a small team because they follow device properties automatically. Tags written by the registry method are not visible in the portal’s list of existing tags, and tags added in the portal are not written back to the registry, so do not use the registry to check which tags a device has.
A naming standard for groups and tags
| Item | Pattern | Examples |
|---|---|---|
| Device group | Two or three letter type, then purpose | DC-DomainControllers, SRV-Servers, WS-Finance |
| Role tag | Upper case, one word | SERVER, DC, KIOSK |
| Sensitivity tag | Upper case, one word | FINANCE, VIP, REGULATED |
| Site tag | SITE- then short site name | SITE-IRVINE, SITE-LB |
| Owner tag | OWN- then team or provider | OWN-IT, OWN-PROVIDER |
Avoid parentheses and commas in tag names: Microsoft notes that filtering might not work on tag names that contain them. Keep a short list of approved tags in your documentation and remove tags that are no longer used.
Build a device group step by step
| Wizard page | What to enter |
|---|---|
| General | A clear name (for example SRV-Servers), the remediation level, and a description stating the owner and purpose |
| Devices | Matching rules on device name, domain, tags and OS platform; rows of the same type are joined with OR, up to 10 values per property |
| Preview devices | Select Show preview; up to 10 matching devices are shown; check they are the ones you expect |
| User access | The Microsoft Entra user groups that may access this device group; only groups already assigned to roles can be chosen |
Microsoft notes that configuration changes can take several minutes, and sometimes several hours, to propagate; a new group may not appear as a filter in the device list straight away. Plan changes outside busy periods and check the result the next day. A tenant can have up to 2,000 device groups, but a small business rarely needs more than a handful; every extra group is one more rule to keep accurate and one more place for a device to land by mistake.
Treat rank as policy, not a sort order
When a device matches more than one group, Microsoft adds it only to the highest-ranked group (rank 1 is highest). That means the order is a security decision. If a broad group such as “all Windows devices” is ranked above “domain controllers”, the domain controllers end up with workstation automation and workstation access.
- Put the most specific and most sensitive groups at the top.
- Put broad catch-all groups at the bottom.
- Devices that match no group fall into Ungrouped devices (default); its rank cannot be changed and it cannot be deleted, but you can set its remediation level and who can access it.
- After any change in rank, check where a sample of devices landed.
Defender device groups are not Intune or Entra device groups
Three different kinds of “group” meet in a Microsoft environment, and they do different jobs. Microsoft Entra ID groups hold users or devices and are used to assign licences, apps and Intune policies. Intune uses those Entra groups (and filters) to decide which devices receive which configuration. Defender for Endpoint device groups live only inside the Defender portal and decide visibility and automated remediation for the devices that match their rules.
| Group type | Lives in | Used for | Built from |
|---|---|---|---|
| Microsoft Entra ID group (users) | Entra admin center | Who gets a Defender role and which device groups they reach | Membership you manage or dynamic rules |
| Microsoft Entra ID group (devices) | Entra admin center | Which devices receive Intune policies, including antivirus and ASR | Membership or dynamic device rules |
| Defender for Endpoint device group | Defender portal | Visibility and automated remediation level | Device name, domain, tags, OS platform |
A practical consequence: moving a laptop into the “Finance” Entra device group changes its Intune policies but not its Defender device group, unless the same change also sets a tag your Defender rule uses. Where you want the two to line up, drive both from one source, for example a dynamic tag rule and a dynamic Entra device group built on the same naming standard.
Classic roles and unified RBAC
Defender for Endpoint has two permission models. Microsoft states that from February 16, 2025, new Defender for Endpoint customers have access only to Microsoft Defender unified role-based access control (unified RBAC), while existing customers keep their current roles until they move. Unified RBAC manages permissions across Defender workloads in one place; you can import existing Defender for Endpoint roles into it with their permissions and assignments, then activate the workload so the new model is enforced.
| Situation | What to do |
|---|---|
| New tenant since early 2025 | Build roles in unified RBAC from the start |
| Existing tenant on classic roles | Plan an import into unified RBAC, review, then activate the Endpoint workload |
| Mixed: some workloads active in unified RBAC | Check which model each workload uses before changing anything |
| Any model | Assign roles to Microsoft Entra groups, not individual users |
To activate or import, Microsoft requires at least the Security Administrator role in Microsoft Entra ID. Device group access still matters in either model: a role grants what someone may do, and the device groups linked to their Entra group limit where they may do it.
Permission options in Defender for Endpoint roles
| Permission | Allows (per Microsoft) |
|---|---|
| View data: Security operations | See security operations data in the portal |
| View data: Defender Vulnerability Management | See vulnerability management data |
| Active remediation actions: Security operations | Take response actions, approve or dismiss pending actions, manage allow and block lists for automation and indicators |
| Vulnerability management: exception, remediation and application handling | Create exceptions, submit remediation requests, block vulnerable applications |
| Alerts investigation | Manage alerts, start automated investigations, run scans, collect investigation packages, manage device tags |
| Manage portal system settings | Storage, SIEM and API settings, advanced settings, roles and device groups (administrator role only) |
| Manage security settings | Alert suppression, automation folder exclusions, onboarding and offboarding, email notifications, indicators |
| Live response: Basic | Start sessions, read-only commands, download files |
| Live response: Advanced | Upload files, run scripts from the library, download portable executable files |
Microsoft recommends using roles with the fewest permissions and limiting Global Administrator to emergencies.
Map each persona to the minimum it needs
| Persona | Device groups | Permissions |
|---|---|---|
| Help desk | Workstations only | View security operations data; alerts investigation |
| Security analyst or MDR provider | All groups it is contracted to watch | View data, alerts investigation, security operations remediation, live response Basic |
| Senior responder | All groups | As above plus live response Advanced |
| Vulnerability manager | All groups | View vulnerability data; remediation handling |
| Server team | Servers and domain controllers | View data; approve pending actions on servers |
| Auditor | All groups | View data only |
| Defender administrator | All groups | Portal and security settings; kept to two or three named people |
Example personas only. Build yours from what each team actually does.
Separate configuration, activation and proof
Three different things must all be true for access to work as designed: the role and group exist (configuration), the permission model is the one actually enforced (activation, especially when moving to unified RBAC), and a real user sees exactly what they should (proof). Many tenants stop at configuration. Record each step: the role definition, the date unified RBAC was activated for Endpoint, and the result of the test below.
Moving from classic roles to unified RBAC
| Step | What to do | Why |
|---|---|---|
| 1. Inventory | List current Defender for Endpoint roles, their permissions and assigned Entra groups | You need a baseline to compare against |
| 2. Clean up | Remove assignments for users or groups that no longer exist in Entra ID | Microsoft lists roles with missing assignments as not eligible for import |
| 3. Import | In the Defender portal, Permissions, Roles, select Import role and choose Defender for Endpoint | Microsoft says imported roles keep the same permissions and assignments |
| 4. Review | Imported roles are marked Imported; edit them to tighten permissions if needed | Editing does not change the original role |
| 5. Activate | Activate the Endpoint workload in workload settings | Until activated, the old model is still enforced |
| 6. Prove | Repeat the allowed-and-denied tests | Confirms the new model behaves as designed |
Microsoft notes you can import roles as often as needed, but importing the same role twice creates a duplicate, so record what you imported and when.
Test allowed and denied behaviour
| Test | Expected result |
|---|---|
| Help desk account opens a workstation | Device page visible; actions allowed by role |
| Help desk account searches for a domain controller | Not visible |
| Analyst account starts live response on a workstation | Allowed if granted |
| Analyst account tries to change device groups | Denied |
| Auditor account tries to isolate a device | Denied |
| A new server is onboarded | Lands in the Servers group within the expected time |
Use test accounts that are not administrators, because administrator roles in Microsoft Entra ID can bypass the limits you are testing. Repeat the tests after any change to groups, roles or rank.
Set the remediation level by business impact
| Level (Microsoft’s names) | Meaning | Typical use |
|---|---|---|
| Full remediation | Automated investigation fixes threats without waiting | Standard workstations |
| Semi: approval required for non-temporary folders | Temporary folders fixed automatically; others need approval | Sensitive users |
| Semi: approval required for system folders | System folders need approval | Specialist machines |
| Semi: approval required for all folders | Every remediation waits for approval | Servers |
| No automated response | Investigations run but take no action | Domain controllers or fragile systems, with a person watching |
Any setting other than full remediation creates pending actions that someone must approve in the Action center. If nobody does, threats remain. Match the level to who is available to approve, not only to how sensitive the device is.
Safeguards for live response
Live response opens a remote session on a device. Basic commands are mostly read-only; Advanced commands can upload files and run scripts. That is powerful during an incident and dangerous if misused.
- Grant Advanced live response only to senior responders, by Entra group.
- Keep the script library small, reviewed and owned by named people.
- Review the action history for live response sessions monthly.
- Tell staff in your acceptable use policy that security staff may connect to devices during investigations.
- For servers, agree in advance who may open a session and when.
Automated investigation and pending actions
When an alert triggers an automated investigation, Defender examines related files, processes and other evidence and proposes remediation. Whether it acts straight away depends on the device group’s remediation level. Actions that need approval appear as pending in the Action center, where people with the Security operations remediation permission can approve or reject them.
| If the level is | Then | So make sure |
|---|---|---|
| Full remediation | Actions run automatically | You review completed actions weekly |
| Any Semi level | Some or all actions wait | Someone checks the Action center every day |
| No automated response | Nothing is fixed automatically | A person investigates every alert on those devices |
Rejected actions and long-waiting actions are both worth reviewing: the first may mean the automation needs tuning, the second that nobody is watching.
Worked example: a 60-person firm with two offices and a provider
Consider a fictional accounting firm with 60 staff in two offices, an on-premises domain controller at each office, two file and application servers, and an outside provider that watches Defender alerts. The owner wants the provider to respond to workstation threats quickly, but nobody outside the firm’s own IT lead should touch servers without asking.
| Rank | Group | Rule | Remediation | Who can access |
|---|---|---|---|---|
| 1 | DC-DomainControllers | Tag DC (dynamic rule on device name) | No automated response | Firm IT lead; provider view only |
| 2 | SRV-Servers | OS platform Windows Server | Semi: approval for all folders | Firm IT lead; provider analysts |
| 3 | WS-Partners | Tag PARTNER | Semi: approval for non-temporary folders | Firm IT lead; provider analysts |
| 4 | WS-Irvine | Tag SITE-IRVINE | Full remediation | Provider analysts; Irvine office manager view only |
| 5 | WS-LongBeach | Tag SITE-LB | Full remediation | Provider analysts |
| – | Ungrouped devices (default) | No match | Full remediation | Firm IT lead only, so strays are noticed |
The partners’ laptops are ranked above the site groups, so a partner in Irvine gets the partner settings, not the site settings. The provider receives a role with alert investigation, security operations remediation and live response Basic, assigned to an Entra group containing only the provider’s named analysts. The firm’s IT lead checks the default group every Monday; anything there means a tag rule missed it.
Fictional example for illustration. Names, sites and choices are not from any real client.
Failures that silently widen access or misroute response
| Failure | Effect | Prevention |
|---|---|---|
| Device group with no Entra group assigned | Microsoft states it is accessible to all users with portal access | Always assign groups, including to Ungrouped devices |
| Broad group ranked above specific ones | Servers get workstation automation and access | Specific groups at the top |
| Tag typo or renamed device | Device drops into the wrong group or the default group | Dynamic tag rules; weekly check of the default group |
| Registry tag used for several meanings | Only one registry tag allowed | Use dynamic rules or API for more |
| Deleting a device group | Microsoft warns it can remove that group from email notification rules, and delete a rule if it was its only group | Check notification rules before deleting |
| Users assigned directly instead of via groups | Access survives role changes | Entra groups only |
| Too many administrators | Anyone phished can change everything | Two or three named administrators |
Checklist before changing groups or roles
| Check | Why |
|---|---|
| Export or record the current groups, ranks, rules and roles | So you can put things back |
| Check email notification rules that use the group | Deleting a group can remove it from rules, or delete a rule |
| Preview matching devices for any new or edited rule | Catches rules that match too much or too little |
| Plan for propagation time | Changes can take minutes to hours |
| Tell the people whose access changes | Avoids surprises during an incident |
| Rerun the allowed-and-denied tests the next day | Proves the change worked |
Questions for a managed provider working in your Defender portal
| Question | Good answer |
|---|---|
| Which device groups will you have access to? | Only those in the contract, listed by name |
| Which permissions do your analysts need? | A short list matching the persona table, not administrator |
| How are your staff added and removed? | Through an Entra group you can see, with prompt removal of leavers |
| Will you change automation levels or groups? | Only with your written approval |
| How do you sign in? | Named accounts with multi-factor authentication; for partners, a documented delegated access method |
| What do you hand back after an incident? | Actions taken, pending actions for you, and a summary |
A first-week plan for a small environment
| Day | Task | Result |
|---|---|---|
| 1 | Write the persona table and the list of groups with rank and remediation level | Design agreed with the owner |
| 2 | Create the Entra groups for each persona; add named people only | Groups ready for role assignment |
| 2 | Create roles (unified RBAC for new tenants) and assign them to those groups | Permissions in place |
| 3 | Create dynamic tag rules; check tags appear on sample devices the next hour | Reliable tags |
| 3 | Create device groups in rank order; preview each; assign Entra groups to every group, including the default | No open groups |
| 4 | Wait for propagation; check where each device landed | Ungrouped devices (default) empty or explained |
| 5 | Run the allowed-and-denied tests with non-administrator test accounts; record results | Proof kept with the design record |
Ownership, review and recovery
| Item | Owner | Review |
|---|---|---|
| Device group design and rank | Security lead | Quarterly, and after reorganisations |
| Tag rules | Endpoint administrator | Monthly |
| Roles and Entra group membership | Security lead with HR leaver process | Monthly |
| Ungrouped devices (default) contents | Endpoint administrator | Weekly |
| Remediation levels | Security lead with server owners | Twice a year |
| Export of current configuration | Endpoint administrator | Before any major change |
Keep a simple record of the design: each group’s name, rank, rule, remediation level, Entra groups and owner. If a change goes wrong, that record is how you put it back.
Measure scope accuracy and minimal access
| Measure | Target |
|---|---|
| Devices in Ungrouped devices (default) | Zero, or every one explained |
| Devices whose group does not match their role | Zero in a sample check |
| People with administrator-level Defender roles | Two or three |
| Role assignments to individual users rather than groups | Zero |
| Pending actions older than one day | Zero |
| Last allowed-and-denied test | Within the last quarter |
Connect device scope to the rest of Defender
Device groups and tags also drive other features. Microsoft lists investigations and hunting, custom data collection, automation rules, role-based access, attack surface reduction rules and Conditional Access among the actions that can target groups or tags. Keep your design simple enough that all of them can share it. When a new feature can target device groups, check whether your existing groups already fit before creating new ones; a second set of groups for one feature usually becomes the set nobody maintains.
- Configuration: Defender for Endpoint configuration guide
- Daily work: incident queue guide and operations guide
- Searching across devices: advanced hunting starter
- Choosing products: EDR tools compared
Want Defender access designed and tested properly?
IT Perfection designs Defender device groups and roles for companies in Irvine, Orange County and Los Angeles County. See Microsoft Defender for Business setup, or EDR deployment and management.

Who does the work
Written by Ali Hassani, CISSP, C|CISO
Ali Hassani has 25+ years of hands-on experience in IT operations, cybersecurity, Microsoft infrastructure, network security and Azure, and works with businesses in Irvine, Orange County and Los Angeles County. Design, implementation and troubleshooting work is planned and reviewed by Ali personally.
This guide is for education and planning. It does not replace a professional audit, compliance assessment or vendor engineering review. Updated November 2026.








Defender for Endpoint device groups and RBAC FAQ
What are device groups in Defender for Endpoint?
Sets of devices chosen by matching rules on name, domain, tags and OS platform, used to limit who can see them and to set automated remediation levels.
What happens when a device matches more than one group?
Microsoft adds it only to the highest-ranked group; rank 1 is highest.
Who can see a device group with no Entra groups assigned?
Microsoft states such a group is accessible to all users with portal access.
What is the Ungrouped devices (default) group?
Where devices go when they match no group. You cannot delete it or change its rank, but you can set its remediation level and access.
What is unified RBAC?
Microsoft Defender’s single permission model across workloads. Microsoft states new Defender for Endpoint customers from February 16, 2025 use only unified RBAC.
How many device groups can we have?
Up to 2,000 per tenant, though most small businesses need only a handful.
Can IT Perfection design our Defender access?
Yes. We design Defender device groups and roles for companies in Irvine, Orange County and Los Angeles County. Call 949-777-5567 or use the contact page.
Sources
Read on November 23, 2026 (Microsoft Learn):
- Create and manage device groups
- Create and manage device tags
- Create and manage roles for role-based access control
- Activate Microsoft Defender unified RBAC
- Import roles to unified RBAC
Microsoft changes Defender often; check Microsoft Learn before each change. This guide is independent and is not endorsed by Microsoft.
Would you rather hand this off?
Microsoft Defender for Endpoint setup review
We review how Defender for Endpoint is set up so the right people see the right devices and alerts.
- Device groups, tags and remediation levels reviewed
- Role-based access set to least privilege
- Agreed changes applied and documented
Each project has a written scope and a written quote before any work starts.
Need this done for your business?
IT Perfection plans, installs and supports this for companies in Irvine and Orange County
The guides explain the steps. If you would rather have it done, planned and documented by an experienced engineer, these are the services that cover it. Design, implementation and troubleshooting work is planned and reviewed by Ali Hassani personally.
Microsoft Intune management
Laptops and phones enrolled, configured and secured from one console.
View serviceEndpoint security, EDR and MDR
Endpoint protection deployed, tuned and watched on every device.
View serviceEndpoint and patch management
Windows and application updates tested and installed on schedule.
View service