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.

Ali Hassani, CISSP and Certified CISO, IT PerfectionWritten by Ali Hassani, CISSP and C|CISO · 25+ years designing, securing and supporting business networks · Updated November 2026

Presenter at a whiteboard with a team in a meeting room
DesignGroups, tags and roles kept separate.

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

TopicDevice groups, tags and roles in Defender for Endpoint
Applies toDefender for Endpoint Plan 1 and Plan 2
Portal pathSettings, Endpoints, Permissions
Key ruleHighest-ranked matching group wins
Facts checkedMicrosoft Learn, November 23, 2026
Why

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.

Concepts

Keep tags, groups, roles and policies separate

LabelTagA word attached to a device, such as SERVER or FINANCE. Describes; does not grant anything.
ContainerDevice groupA set of devices chosen by matching rules. Sets remediation level and who can see them.
PermissionRoleWhat a person may see and do, assigned to a Microsoft Entra group.
ConfigurationPolicyAntivirus, ASR and other settings, usually deployed from Intune. Separate from groups.
Four ideas that are easy to mix up. Keeping them separate is what makes access predictable.

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.

QuestionAnswered 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
Design

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.

DimensionGood forWatch out for
Role (server, workstation, domain controller, kiosk)Automation level and accessNeeds reliable tagging or naming
Sensitivity (finance, executives, regulated data)Tighter approval and accessPeople change roles; review tags
Owner (site, business unit, client)Delegated access for local IT or a providerMergers and moves
Operating systemSeparating servers from clientsUpgrades change matches
DomainMulti-domain or acquired environmentsCloud-only devices may have none
Device name patternStrong naming standardsOne 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.

Tags

Tagging devices

Microsoft supports several ways to tag devices. Choose one primary method so you always know where a tag came from.

MethodPlatformsNotes from Microsoft’s guidance
Portal (Manage tags)All supportedGood for a few devices; tags appear in the device inventory
Dynamic rules (asset rule management)All supportedAssign and remove tags automatically from device properties; update roughly every hour
Registry key DeviceTagging, value GroupWindowsOnly one tag; syncs once a day or on restart; clear the value to remove
Intune custom profile (OMA-URI)Windows 10 and laterCentral deployment of the registry-based tag
Security settings management or configuration profilemacOS, LinuxThrough endpoint security policy or a plist or JSON profile
App configuration policy in IntuneiOS, AndroidFor mobile devices
APIAll supportedFor 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.

Naming

A naming standard for groups and tags

ItemPatternExamples
Device groupTwo or three letter type, then purposeDC-DomainControllers, SRV-Servers, WS-Finance
Role tagUpper case, one wordSERVER, DC, KIOSK
Sensitivity tagUpper case, one wordFINANCE, VIP, REGULATED
Site tagSITE- then short site nameSITE-IRVINE, SITE-LB
Owner tagOWN- then team or providerOWN-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

Build a device group step by step

Microsoft Defender portal › Settings › Endpoints › Permissions › Device groups › Add device group
Wizard pageWhat to enter
GeneralA clear name (for example SRV-Servers), the remediation level, and a description stating the owner and purpose
DevicesMatching 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 devicesSelect Show preview; up to 10 matching devices are shown; check they are the ones you expect
User accessThe 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.

Rank

Treat rank as policy, not a sort order

1Domain controllersTag DC, or name starts with DC-No automated response
2ServersTag SERVER, or OS is Windows ServerSemi: approval for all folders
3Finance and executivesTag FINANCE or VIPSemi: approval for non-temporary folders
4WorkstationsOS is Windows 10 or 11Full remediation
–Ungrouped devices (default)Anything not matched aboveFull remediation
Illustration: a ranked set of device groups. A device that matches several groups joins only the highest-ranked one, so specific groups must sit above broad ones.

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.
Intune

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 typeLives inUsed forBuilt from
Microsoft Entra ID group (users)Entra admin centerWho gets a Defender role and which device groups they reachMembership you manage or dynamic rules
Microsoft Entra ID group (devices)Entra admin centerWhich devices receive Intune policies, including antivirus and ASRMembership or dynamic device rules
Defender for Endpoint device groupDefender portalVisibility and automated remediation levelDevice 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.

Roles

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.

SituationWhat to do
New tenant since early 2025Build roles in unified RBAC from the start
Existing tenant on classic rolesPlan an import into unified RBAC, review, then activate the Endpoint workload
Mixed: some workloads active in unified RBACCheck which model each workload uses before changing anything
Any modelAssign 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.

Permissions

Permission options in Defender for Endpoint roles

PermissionAllows (per Microsoft)
View data: Security operationsSee security operations data in the portal
View data: Defender Vulnerability ManagementSee vulnerability management data
Active remediation actions: Security operationsTake response actions, approve or dismiss pending actions, manage allow and block lists for automation and indicators
Vulnerability management: exception, remediation and application handlingCreate exceptions, submit remediation requests, block vulnerable applications
Alerts investigationManage alerts, start automated investigations, run scans, collect investigation packages, manage device tags
Manage portal system settingsStorage, SIEM and API settings, advanced settings, roles and device groups (administrator role only)
Manage security settingsAlert suppression, automation folder exclusions, onboarding and offboarding, email notifications, indicators
Live response: BasicStart sessions, read-only commands, download files
Live response: AdvancedUpload files, run scripts from the library, download portable executable files

Microsoft recommends using roles with the fewest permissions and limiting Global Administrator to emergencies.

Personas

Map each persona to the minimum it needs

PersonaDevice groupsPermissions
Help deskWorkstations onlyView security operations data; alerts investigation
Security analyst or MDR providerAll groups it is contracted to watchView data, alerts investigation, security operations remediation, live response Basic
Senior responderAll groupsAs above plus live response Advanced
Vulnerability managerAll groupsView vulnerability data; remediation handling
Server teamServers and domain controllersView data; approve pending actions on servers
AuditorAll groupsView data only
Defender administratorAll groupsPortal and security settings; kept to two or three named people

Example personas only. Build yours from what each team actually does.

Proof

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.

Migrate

Moving from classic roles to unified RBAC

StepWhat to doWhy
1. InventoryList current Defender for Endpoint roles, their permissions and assigned Entra groupsYou need a baseline to compare against
2. Clean upRemove assignments for users or groups that no longer exist in Entra IDMicrosoft lists roles with missing assignments as not eligible for import
3. ImportIn the Defender portal, Permissions, Roles, select Import role and choose Defender for EndpointMicrosoft says imported roles keep the same permissions and assignments
4. ReviewImported roles are marked Imported; edit them to tighten permissions if neededEditing does not change the original role
5. ActivateActivate the Endpoint workload in workload settingsUntil activated, the old model is still enforced
6. ProveRepeat the allowed-and-denied testsConfirms 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

Test allowed and denied behaviour

TestExpected result
Help desk account opens a workstationDevice page visible; actions allowed by role
Help desk account searches for a domain controllerNot visible
Analyst account starts live response on a workstationAllowed if granted
Analyst account tries to change device groupsDenied
Auditor account tries to isolate a deviceDenied
A new server is onboardedLands 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.

Automation

Set the remediation level by business impact

Level (Microsoft’s names)MeaningTypical use
Full remediationAutomated investigation fixes threats without waitingStandard workstations
Semi: approval required for non-temporary foldersTemporary folders fixed automatically; others need approvalSensitive users
Semi: approval required for system foldersSystem folders need approvalSpecialist machines
Semi: approval required for all foldersEvery remediation waits for approvalServers
No automated responseInvestigations run but take no actionDomain 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.

Live response

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.
Pending

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 isThenSo make sure
Full remediationActions run automaticallyYou review completed actions weekly
Any Semi levelSome or all actions waitSomeone checks the Action center every day
No automated responseNothing is fixed automaticallyA 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.

Example

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.

RankGroupRuleRemediationWho can access
1DC-DomainControllersTag DC (dynamic rule on device name)No automated responseFirm IT lead; provider view only
2SRV-ServersOS platform Windows ServerSemi: approval for all foldersFirm IT lead; provider analysts
3WS-PartnersTag PARTNERSemi: approval for non-temporary foldersFirm IT lead; provider analysts
4WS-IrvineTag SITE-IRVINEFull remediationProvider analysts; Irvine office manager view only
5WS-LongBeachTag SITE-LBFull remediationProvider analysts
–Ungrouped devices (default)No matchFull remediationFirm 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.

Risks

Failures that silently widen access or misroute response

FailureEffectPrevention
Device group with no Entra group assignedMicrosoft states it is accessible to all users with portal accessAlways assign groups, including to Ungrouped devices
Broad group ranked above specific onesServers get workstation automation and accessSpecific groups at the top
Tag typo or renamed deviceDevice drops into the wrong group or the default groupDynamic tag rules; weekly check of the default group
Registry tag used for several meaningsOnly one registry tag allowedUse dynamic rules or API for more
Deleting a device groupMicrosoft warns it can remove that group from email notification rules, and delete a rule if it was its only groupCheck notification rules before deleting
Users assigned directly instead of via groupsAccess survives role changesEntra groups only
Too many administratorsAnyone phished can change everythingTwo or three named administrators
Change

Checklist before changing groups or roles

CheckWhy
Export or record the current groups, ranks, rules and rolesSo you can put things back
Check email notification rules that use the groupDeleting a group can remove it from rules, or delete a rule
Preview matching devices for any new or edited ruleCatches rules that match too much or too little
Plan for propagation timeChanges can take minutes to hours
Tell the people whose access changesAvoids surprises during an incident
Rerun the allowed-and-denied tests the next dayProves the change worked
Provider

Questions for a managed provider working in your Defender portal

QuestionGood 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
Start

A first-week plan for a small environment

DayTaskResult
1Write the persona table and the list of groups with rank and remediation levelDesign agreed with the owner
2Create the Entra groups for each persona; add named people onlyGroups ready for role assignment
2Create roles (unified RBAC for new tenants) and assign them to those groupsPermissions in place
3Create dynamic tag rules; check tags appear on sample devices the next hourReliable tags
3Create device groups in rank order; preview each; assign Entra groups to every group, including the defaultNo open groups
4Wait for propagation; check where each device landedUngrouped devices (default) empty or explained
5Run the allowed-and-denied tests with non-administrator test accounts; record resultsProof kept with the design record
Own

Ownership, review and recovery

ItemOwnerReview
Device group design and rankSecurity leadQuarterly, and after reorganisations
Tag rulesEndpoint administratorMonthly
Roles and Entra group membershipSecurity lead with HR leaver processMonthly
Ungrouped devices (default) contentsEndpoint administratorWeekly
Remediation levelsSecurity lead with server ownersTwice a year
Export of current configurationEndpoint administratorBefore 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

Measure scope accuracy and minimal access

MeasureTarget
Devices in Ungrouped devices (default)Zero, or every one explained
Devices whose group does not match their roleZero in a sample check
People with administrator-level Defender rolesTwo or three
Role assignments to individual users rather than groupsZero
Pending actions older than one dayZero
Last allowed-and-denied testWithin the last quarter
Connect

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.

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.

Ali Hassani, CISSP and Certified CISO, IT Perfection

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.

ISC2 CISSP badgeEC-Council Certified CISO (C|CISO) badgeCisco CCNP Routing and Switching badgeMCSE: Server Infrastructure badgeMicrosoft MCSE badgeMCSA: Security badgeCisco CCNA Cybersecurity badgeMCITP badge

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):

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 service

Endpoint security, EDR and MDR

Endpoint protection deployed, tuned and watched on every device.

View service

Endpoint and patch management

Windows and application updates tested and installed on schedule.

View service