Scoping
In brief
The scoping guide now documents applying scope tags through Azure Monitor data collection rules (DCRs), including CI/CD workflows. It also updates prerequisites, requires Data Operations (Manage) and Alerts (Manage) for Table Management, and clarifies subscription requirements and rule timing.
What Defender admins need to know
Administrators managing schemas or ingestion transformations outside the Defender portal can use DCRs to apply scope tags. Review the updated permissions and prerequisites when configuring scoping.
Summaries are generated from the documentation change itself.
Documentation change
The comparison below shows only the changed extract. Use the full-page view for complete context.
Microsoft Sentinel scoping provides row-level role-based access control (RBAC), enabling granular, row-level access without requiring workspace separation. Microsoft Sentinel scoping allows multiple teams to operate securely within a shared Microsoft Sentinel environment while using consistent and reusable scope definitions across tables and experiences.
Configure scoping in the Microsoft Defender portal. Sentinel in the Azure portal (Ibiza) doesn't support scoping. Before you begin, make sure you meet the prerequisites for configuring scoping.
What is Microsoft Sentinel scoping?
- Restrict access by scope: Limit user access to alerts, incidents, hunting queries, and data lake exploration based on their assigned scope
Scopes apply to Sentinel tables that support ingestion-time transformations.
- Sentinel enabled in Unified RBAC: You must enable Microsoft Sentinel in URBAC before using this feature.
- Required permissions for the person assigning scope and tagging tables:
- Security Authorization (Manage) permission (URBAC) to create scopes and assignments
- Data Operations (Manage)
permissionand Alerts (Manage) permissions (URBAC) for Table Management - Subscription owner or assigned with the
Microsoft.Insights/DataCollectionRules/Writepermission to create Data Collection Rules (DCRs)
Step 1: Create a Sentinel scope
:::image type="content" source="./media/scoping/add-scope.png" alt-text="Screenshot of the Add Sentinel scope tab and dialog." lightbox="./media/scoping/add-scope.png":::
Step 2: Assign scope tags to users or groups
Select Create custom role.
Enter the role name and description, and select Next.
:::image type="content" source="./media/scoping/set-up-basics.png" alt-text="Screenshot of dialog for creating name and description of a custom role." lightbox="./media/scoping/set-up-basics.png":::
Assign the required permissions to the role and select Apply.
:::image type="content" source="./media/scoping/assign-permissions.png" alt-text="Screenshot of dialog for assigning permissions to a custom role." lightbox="./media/scoping/assign-permissions.png":::
In Assignments, enter a name and select:
- Users or user groups (Microsoft Entra ID groups)
:::image type="content" source="./media/scoping/edit-scope.png" alt-text="Screenshot of assigning Sentinel scopes to a custom role." lightbox="./media/scoping/edit-scope.png":::
Step 3: Tag tables with scope
- Only tables that support ingestion-time transformations can be tagged. Custom tables built on CLv1 aren't supported; CLv2 tables are supported.
- XDR tables aren't supported, including extended retention of XDR tables into the lake.
- You can only add transformations in the same Azure subscription that contains the target workspace.
- You can only tag newly ingested data. Previously ingested data isn't included and can't be retroactively scoped.
- The Log Analytics tables
SecurityAlertsandSecurityIncidentsdon't automatically inherit scope from the raw tables that generated them, so scoped users can't access them by default. As a workaround, either:- Use the XDR
AlertsInfoandAlertsEvidencetables, where scope is inherited automatically, or
- Use the XDR
Select a table that supports ingestion-time transformations.
Select Scope tag rule.
:::image type="content" source="./media/scoping/scope-tag-rule.png" alt-text="Screenshot of the Scope tag rule tab." lightbox="./media/scoping/scope-tag-rule.png":::
Enable the Allow use of scope tags for RBAC toggle.
Enable the Scope tag rule toggle.
Select the scope to apply to rows matching the expression.
Save the rule.
You can only tag newly ingested data. Previously ingested data isn't included. After you save a scope tag rule, it can take up to an hour for that rule to take effect.
:::image type="content" source="./media/scoping/table-scope-tag-rule.png" alt-text="Screenshot of the table scope tag rule." lightbox="./media/scoping/table-scope-tag-rule.png":::
Manually tag data by using a DCR
If your organization manages table schemas and ingestion-time transformations outside the Microsoft Defender portal, you can apply scope tags directly in Azure Monitor. This option supports both direct configuration and automated deployment workflows, including CI/CD. Complete the table schema and DCR configuration before you enable scoped access for the table in Microsoft Sentinel.
Add a custom column named
SentinelScope_CFwith thestringdata type to the table schema. For more information, see Manage tables in a Log Analytics workspace.Create or update a DCR for the table. Add a transformation that populates
SentinelScope_CFwith the Microsoft Sentinel scope values for each row. For guidance on selecting and configuring the DCR, see Configure your data transformation.In the Microsoft Defender portal, go to Microsoft Sentinel > Configuration > Tables.
Select the table, and then select Scope tag rule.
Set Control access with scope tags to On. Leave Rule status set to Off because the DCR applies the tags.
:::image type="content" source="./media/scoping/control-access-scope-tags-toggle-cropped.png" alt-text="Screenshot of the Scope tagging pane showing Control access with scope tags set to On and Rule status set to Off." lightbox="./media/scoping/control-access-scope-tags-toggle.png":::
Select Save.
Step 4: Access scoped data
Use the SentinelScope_CF custom field in queries and detection rules to reference scope in your analytics.
:::image type="content" source="./media/scoping/scoped-alerts-view.png" alt-text="Screenshot of alerts filtered by Sentinel scope." lightbox="./media/scoping/scoped-alerts-view.png":::
Limitations of Microsoft Sentinel scoping
:::image type="content" source="./media/scoping/select-scopes-detection.png" alt-text="Screenshot of selecting specific scopes for a custom detection rule." lightbox="./media/scoping/select-scopes-detection.png":::
If you're an unscoped user, you can also select All data. By selecting
this option,All data, the rule is unscoped, runs over all data, and is visible and editable only to unscoped users.Complete the wizard and save the rule.
:::image type="content" source="./media/scoping/review-scoped-detection.png" alt-text="Screenshot of the review step for a scoped custom detection rule." lightbox="./media/scoping/review-scoped-detection.png":::
Keep the following limits in mind for scoped custom detections:
- Custom detections over
AlertInfoandAlertEvidencearen't supportedignore scopes and run over alldata, regardless of the defined scope.data. - Don't create scoped detections on unscoped tables.
Querying unscoped tables from a scoped detectionThese detections alwaysreturnsreturn no results. - Scoped detections can't use custom frequency
whenwith XDR tables. XDR tables areincludedunscoped inthe query. Custom frequency requires data to be fetched fromSentinel,where XDR tables are unscoped. XDR tablesso only unscoped detections canonly be queried by unscoped detections.query them.
Create scoped automation rules
In the Microsoft Defender portal, go to Microsoft Sentinel > Configuration > Automation.
Open the Enhanced rules tab.
:::image type="content" source="./media/scoping/automation-enhanced-rules.png" alt-text="Screenshot of the Enhanced rules tab in Automation." lightbox="./media/scoping/automation-enhanced-rules.png":::
Select Create to add a new automation rule, then fill in the details for your automation rule.
:::image type="content" source="./media/scoping/create-automation-rule.png" alt-text="Screenshot of creating a new enhanced automation rule." lightbox="./media/scoping/create-automation-rule.png":::
Select the Sentinel scope to apply to the rule:
- If you're a scoped user (you have one or more Sentinel scopes assigned to you), you must choose a scope.
- If you're an unscoped user, you can choose All available and future Sentinel scopes.
:::image type="content" source="./media/scoping/automation-rule-scope.png" alt-text="Screenshot of the Sentinel scope selector for an automation rule." lightbox="./media/scoping/automation-rule-scope.png":::
Save the rule.
The automation rule applies to the data associated with the Sentinel scope you selected scopefor the rule and is only visible to users assigned to that scope.
- Review the list of tables that support ingestion-time transformations
- Plan scope names and logic before tagging data
- Start with a pilot scope for a small team or data subset
- Learn more about Unified RBAC in Microsoft Defender
@@ -7,9 +7,9 @@ ms.subservice: sentinel-platform author: mberdugo ms.author: monaberdugo ms.reviewer: tbeerthuis-ms.date: 06/16/2026+ms.date: 08/05/2026 ai-usage: ai-assisted-ms.custom: msecd-doc-authoring-1014+ms.custom: msecd-doc-authoring-1020 #customer intent: As a security administrator, I want to configure Microsoft Sentinel scoping to control access to data at the row level, so that I can ensure that users only have access to the data relevant to their role and responsibilities. ---@@ -18,7 +18,7 @@ ms.custom: msecd-doc-authoring-1014 Microsoft Sentinel scoping provides row-level role-based access control (RBAC), enabling granular, row-level access without requiring workspace separation. Microsoft Sentinel scoping allows multiple teams to operate securely within a shared Microsoft Sentinel environment while using consistent and reusable scope definitions across tables and experiences. -Configure scoping in the Microsoft Defender portal. Sentinel in the Azure portal (Ibiza) doesn't support scoping.+Configure scoping in the Microsoft Defender portal. Sentinel in the Azure portal (Ibiza) doesn't support scoping. Before you begin, make sure you meet the [prerequisites](#prerequisites) for configuring scoping. ## What is Microsoft Sentinel scoping? @@ -30,7 +30,7 @@ Microsoft Sentinel scoping extends permissions management in the Defender portal - [Restrict access by scope](#step-4-access-scoped-data): Limit user access to alerts, incidents, hunting queries, and data lake exploration based on their assigned scope > [!NOTE]-> Scopes are additive. Users assigned multiple roles get the broadest permissions available to them from all their assignments. For example, if you hold both an Entra global reader role and a Defender XDR URBAC role that provides scoped permissions on *System tables*, you're unrestricted by scopes on System tables due to the Entra role. Another example is if you hold the same role permissions in Microsoft Defender XDR for a workspace, with two different scopes, you have those permissions for both scopes.+> Scopes are additive. Users assigned multiple roles get the broadest permissions available to them from all their assignments. For example, if you hold both an Entra global reader role and a Defender URBAC role that provides scoped permissions on *System tables*, you're unrestricted by scopes on System tables due to the Entra role. Another example is if you hold the same role permissions in Microsoft Defender for a workspace, with two different scopes, you have that permission for both scopes. Scopes apply to Sentinel tables that support ingestion-time transformations. @@ -52,7 +52,7 @@ Before you begin, verify the following prerequisites: - **Sentinel enabled in Unified RBAC**: You must [enable Microsoft Sentinel in URBAC](/defender-xdr/manage-rbac) before using this feature. - **Required permissions** for the person assigning scope and tagging tables: - **Security Authorization (Manage)** permission (URBAC) to create scopes and assignments- - **Data Operations (Manage)** permission (URBAC) for Table Management+ - **Data Operations (Manage)** and **Alerts (Manage)** permissions (URBAC) for Table Management - **Subscription owner** or assigned with the `Microsoft.Insights/DataCollectionRules/Write` permission to create Data Collection Rules (DCRs) ## Step 1: Create a Sentinel scope@@ -71,7 +71,7 @@ You can create multiple scopes and define custom scope names and descriptions fo > [!NOTE] > You can create up to 100 unique Sentinel scopes per tenant. -:::image type="content" source="./media/scoping/add-scope.png" alt-text="Screenshot of the Add Sentinel scope tab and dialog.":::+:::image type="content" source="./media/scoping/add-scope.png" alt-text="Screenshot of the Add Sentinel scope tab and dialog." lightbox="./media/scoping/add-scope.png"::: ## Step 2: Assign scope tags to users or groups @@ -81,11 +81,11 @@ To assign scope tags to users or groups, follow these steps: 1. Select **Create custom role**. 1. Enter the role name and description, and select **Next**. - :::image type="content" source="./media/scoping/set-up-basics.png" alt-text="Screenshot of dialog for creating name and description of a custom role.":::+ :::image type="content" source="./media/scoping/set-up-basics.png" alt-text="Screenshot of dialog for creating name and description of a custom role." lightbox="./media/scoping/set-up-basics.png"::: 1. Assign the required permissions to the role and select **Apply**. - :::image type="content" source="./media/scoping/assign-permissions.png" alt-text="Screenshot of dialog for assigning permissions to a custom role.":::+ :::image type="content" source="./media/scoping/assign-permissions.png" alt-text="Screenshot of dialog for assigning permissions to a custom role." lightbox="./media/scoping/assign-permissions.png"::: 1. In **Assignments**, enter a name and select: - Users or user groups (Microsoft Entra ID groups)@@ -99,7 +99,7 @@ You can assign users to multiple scopes simultaneously over multiple workspaces, > [!NOTE] > You can only assign Sentinel scopes to Defender XDR RBAC roles. Azure RBAC permissions on workspaces and Entra global role permissions aren't supported. Experiences that can't use row-level RBAC, such as Jupyter Notebooks, don't allow scoped users to view data for those workspaces. -:::image type="content" source="./media/scoping/edit-scope.png" alt-text="Screenshot of assigning Sentinel scopes to a custom role.":::+:::image type="content" source="./media/scoping/edit-scope.png" alt-text="Screenshot of assigning Sentinel scopes to a custom role." lightbox="./media/scoping/edit-scope.png"::: ## Step 3: Tag tables with scope @@ -109,7 +109,7 @@ Keep the following limits in mind before you tag a table: - Only tables that support ingestion-time transformations can be tagged. Custom tables built on CLv1 aren't supported; CLv2 tables are supported. - XDR tables aren't supported, including extended retention of XDR tables into the lake.-- You can only add transformations in the same subscription as your user subscription.+- You can only add transformations in the same Azure subscription that contains the target workspace. - You can only tag newly ingested data. Previously ingested data isn't included and can't be retroactively scoped. - The Log Analytics tables `SecurityAlerts` and `SecurityIncidents` don't automatically inherit scope from the raw tables that generated them, so scoped users can't access them by default. As a workaround, either: - Use the XDR `AlertsInfo` and `AlertsEvidence` tables, where scope is inherited automatically, or@@ -121,7 +121,7 @@ To tag a table: 1. Select a table that supports ingestion-time transformations. 1. Select **Scope tag rule**. - :::image type="content" source="./media/scoping/scope-tag-rule.png" alt-text="Screenshot of the Scope tag rule tab.":::+ :::image type="content" source="./media/scoping/scope-tag-rule.png" alt-text="Screenshot of the Scope tag rule tab." lightbox="./media/scoping/scope-tag-rule.png"::: 1. Enable the **Allow use of scope tags for RBAC** toggle. 1. Enable the **Scope tag rule** toggle.@@ -136,12 +136,29 @@ To tag a table: 1. Select the scope to apply to rows matching the expression. 1. Save the rule. -You can only tag newly ingested data. Previously ingested data isn't included. After tagging, it can take up to an hour for the new rule to take effect.+You can only tag newly ingested data. Previously ingested data isn't included. After you save a scope tag rule, it can take up to an hour for that rule to take effect. > [!TIP] > You can create multiple scope tag rules on the same table to tag different rows with different scopes. Records can belong to multiple scopes simultaneously. -:::image type="content" source="./media/scoping/table-scope-tag-rule.png" alt-text="Screenshot of the table scope tag rule.":::+:::image type="content" source="./media/scoping/table-scope-tag-rule.png" alt-text="Screenshot of the table scope tag rule." lightbox="./media/scoping/table-scope-tag-rule.png":::++### Manually tag data by using a DCR++If your organization manages table schemas and ingestion-time transformations outside the Microsoft Defender portal, you can apply scope tags directly in Azure Monitor. This option supports both direct configuration and automated deployment workflows, including CI/CD. Complete the table schema and DCR configuration before you enable scoped access for the table in Microsoft Sentinel.++1. Add a custom column named `SentinelScope_CF` with the `string` data type to the table schema. For more information, see [Manage tables in a Log Analytics workspace](/azure/azure-monitor/logs/manage-logs-tables#view-table-properties).+1. Create or update a DCR for the table. Add a transformation that populates `SentinelScope_CF` with the Microsoft Sentinel scope values for each row. For guidance on selecting and configuring the DCR, see [Configure your data transformation](/azure/sentinel/configure-data-transformation).+1. In the Microsoft Defender portal, go to **Microsoft Sentinel** > **Configuration** > **Tables**.+1. Select the table, and then select **Scope tag rule**.+1. Set **Control access with scope tags** to **On**. Leave **Rule status** set to **Off** because the DCR applies the tags.++ :::image type="content" source="./media/scoping/control-access-scope-tags-toggle-cropped.png" alt-text="Screenshot of the Scope tagging pane showing Control access with scope tags set to On and Rule status set to Off." lightbox="./media/scoping/control-access-scope-tags-toggle.png":::++1. Select **Save**.++> [!NOTE]+> Turning on **Control access with scope tags** enables scoped access for rows tagged by the DCR. It doesn't create the `SentinelScope_CF` column or update the DCR. ## Step 4: Access scoped data @@ -162,26 +179,26 @@ Alerts inherit scope from the underlying data. Incidents are visible if at least Use the `SentinelScope_CF` custom field in queries and detection rules to reference scope in your analytics. > [!NOTE]-> When you create custom detections and analytics rules, you must project the `SentinelScope_CF` column in their KQL so that alerts inherit scope correctly. If you don't project this column, even scoped rules produce unscoped alerts that aren't visible to scoped users.+> When you create custom detections and analytics rules, you must project the `SentinelScope_CF` column in the KQL for those rules so that alerts inherit scope correctly. If you don't project this column, even scoped rules produce unscoped alerts that aren't visible to scoped users. -:::image type="content" source="./media/scoping/scoped-alerts-view.png" alt-text="Screenshot of alerts filtered by Sentinel scope.":::+:::image type="content" source="./media/scoping/scoped-alerts-view.png" alt-text="Screenshot of alerts filtered by Sentinel scope." lightbox="./media/scoping/scoped-alerts-view.png"::: <a name="limitations"></a> ## Limitations of Microsoft Sentinel scoping -:::image type="content" source="./media/scoping/select-scopes-detection.png" alt-text="Screenshot of selecting specific scopes for a custom detection rule.":::+:::image type="content" source="./media/scoping/select-scopes-detection.png" alt-text="Screenshot of selecting specific scopes for a custom detection rule." lightbox="./media/scoping/select-scopes-detection.png"::: -1. If you're an unscoped user, you can also select **All data**. By selecting this option, the rule is unscoped, runs over all data, and is visible and editable only to unscoped users.+1. If you're an unscoped user, you can also select **All data**. By selecting **All data**, the rule is unscoped, runs over all data, and is visible and editable only to unscoped users. 1. Complete the wizard and save the rule. - :::image type="content" source="./media/scoping/review-scoped-detection.png" alt-text="Screenshot of the review step for a scoped custom detection rule.":::+ :::image type="content" source="./media/scoping/review-scoped-detection.png" alt-text="Screenshot of the review step for a scoped custom detection rule." lightbox="./media/scoping/review-scoped-detection.png"::: Keep the following limits in mind for scoped custom detections: -- Custom detections over `AlertInfo` and `AlertEvidence` aren't supported and run over all data, regardless of the defined scope.-- Don't create scoped detections on unscoped tables. Querying unscoped tables from a scoped detection always returns no results.-- Scoped detections can't use custom frequency when XDR tables are included in the query. Custom frequency requires data to be fetched from Sentinel, where XDR tables are unscoped. XDR tables can only be queried by unscoped detections.+- Custom detections over `AlertInfo` and `AlertEvidence` ignore scopes and run over all data.+- Don't create scoped detections on unscoped tables. These detections always return no results.+- Scoped detections can't use custom frequency with XDR tables. XDR tables are unscoped in Sentinel, so only unscoped detections can query them. ### Create scoped automation rules @@ -190,22 +207,22 @@ To create scoped automation rules, follow these steps: 1. In the Microsoft Defender portal, go to **Microsoft Sentinel** > **Configuration** > **Automation**. 1. Open the **Enhanced rules** tab. - :::image type="content" source="./media/scoping/automation-enhanced-rules.png" alt-text="Screenshot of the Enhanced rules tab in Automation.":::+ :::image type="content" source="./media/scoping/automation-enhanced-rules.png" alt-text="Screenshot of the Enhanced rules tab in Automation." lightbox="./media/scoping/automation-enhanced-rules.png"::: 1. Select **Create** to add a new automation rule, then fill in the details for your automation rule. - :::image type="content" source="./media/scoping/create-automation-rule.png" alt-text="Screenshot of creating a new enhanced automation rule.":::+ :::image type="content" source="./media/scoping/create-automation-rule.png" alt-text="Screenshot of creating a new enhanced automation rule." lightbox="./media/scoping/create-automation-rule.png"::: 1. Select the **Sentinel scope** to apply to the rule: - If you're a scoped user (you have one or more Sentinel scopes assigned to you), you must choose a scope. - If you're an unscoped user, you can choose **All available and future Sentinel scopes**. - :::image type="content" source="./media/scoping/automation-rule-scope.png" alt-text="Screenshot of the Sentinel scope selector for an automation rule.":::+ :::image type="content" source="./media/scoping/automation-rule-scope.png" alt-text="Screenshot of the Sentinel scope selector for an automation rule." lightbox="./media/scoping/automation-rule-scope.png"::: 1. Save the rule. -The automation rule applies to the data associated with the selected scope and is only visible to users assigned to that scope.+The automation rule applies to the data associated with the Sentinel scope you selected for the rule and is only visible to users assigned to that scope. > [!NOTE] > Playbooks and integrations don't yet support Sentinel scoping.@@ -227,4 +244,4 @@ Use the following resources to continue planning your scoping deployment: - Review the list of [tables that support ingestion-time transformations](/azure/azure-monitor/logs/tables-feature-support) - Plan scope names and logic before tagging data - Start with a pilot scope for a small team or data subset-- Learn more about [Unified RBAC in Microsoft Defender XDR](/defender-xdr/manage-rbac)+- Learn more about [Unified RBAC in Microsoft Defender](/defender-xdr/manage-rbac) 