Assign Microsoft Defender for Endpoint basic permissions
In brief
The article now states that basic permissions are for existing Defender for Endpoint customers, with full access assigned through Security Administrator and read-only access through Security Reader. It also adds Microsoft Graph PowerShell role and delegated-permission prerequisites and notes that new customers use unified RBAC.
What Defender admins need to know
Administrators should verify their organization still uses basic permissions and meet the updated role and Graph connection requirements when assigning access. No general action or deadline is stated.
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.
UseAssign basic permissions tofor Microsoft Defender for Endpoint portal access the portal
This article explains how to set up basicBasic permissions management in thegives existing Microsoft Defender portal, including how to assignfor Endpoint customers two portal access levels: full access or read-only access usingaccess. Use Microsoft Graph PowerShell. If you wantPowerShell to use basic permissions managementassign the Security Administrator role for the Microsoft Defender portal, keep in mind that permissions are set to either full access or read only.the Security Reader role for read-only access. For more granular control over permissions, use role-based access control.
Assign user access using Microsoft Graph PowerShellPrerequisites
You can assign users with one of the following levels of permissions:
Full access (Read and Write)Read-only access
Before you begin
Complete the followingthese prerequisites before you assign user access:
- Confirm that your organization still uses basic permissions management. If your organization switched to RBAC, you can't switch back to basic permissions.
- Install Microsoft Graph PowerShell.
- Use an account assigned the Privileged Role Administrator role or a custom role with the required role-management permissions. Privileged Role Administrator is the least-privileged Microsoft Entra built-in role supported for this operation.
- Connect to Microsoft Graph
PowerShell.by using Connect-MgGraph with the delegatedRoleManagement.ReadWrite.DirectoryandUser.ReadBasic.Allpermissions. Formore information, see, How to install Microsoft Graph PowerShellauthentication options, see Microsoft Graph PowerShell authentication commands.
Connect to your Microsoft Entra ID. For more information, see Connect-MgGraph.
You don't need to run PowerShell as a local Windows administrator to assign Microsoft Entra roles through Microsoft Graph.
Understand the basic access levels
Basic permissions management provides these access levels:
Full access: Users
with full accesscanlogsign in, viewallsysteminformation andinformation, resolve alerts, submit files for deep analysis, and download the onboarding package.Assigning full access rights requires addingAssign theusers to a role, such as Security Administrator, usingMicrosoft Entrabuilt-in roles.Security Administrator role to grant full access.Read-only access: Users
with read-only accesscanlog in,sign in and viewall alerts,alerts and related information.They
will not be able tocan't change alert states, submit files for deepanalysisanalysis, or performany stateother state-changing operations.Assigning read-only access rights requires addingAssign theusers to the "Security Reader"Microsoft Entrabuilt-in role.Security Reader role to grant read-only access.
Assign user access using Microsoft Graph PowerShell
UseAssign the following stepsappropriate Microsoft Entra role to assign security roles:each user who needs access to Defender for Endpoint.
Assign full access
ForreadReplace[email protected]with the user principal name of the account that needs full access, andwriteaccess, assign users to the security administrator role by usingthen run the following command:$Role = Get-New-MgDirectoryRoleMemberByRef -DirectoryRoleId (Get-MgDirectoryRole -Filter "DisplayName eq 'Security Administrator'"$UserId = (Get-MgUser -UserId "[email protected]").Id$DirObject = @{ "@odata.id" =-OdataId "https://graph.microsoft.com/v1.0/directoryObjects/$UserId((Get-MgUser -UserId '[email protected]').Id)"} New-MgDirectoryRoleMemberByRef -DirectoryRoleId $Role.Id -BodyParameter $DirObjectForAssign read-only
accessReplace
[email protected]with the user principal name of the account that needs read-only access,assign users to the security reader role by usingand then run the following command:$Role = Get-New-MgDirectoryRoleMemberByRef -DirectoryRoleId (Get-MgDirectoryRole -Filter "DisplayName eq 'Security Reader'"$UserId = (Get-MgUser -UserId "[email protected]").Id$DirObject = @{ "@odata.id" =-OdataId "https://graph.microsoft.com/v1.0/directoryObjects/$UserId((Get-MgUser -UserId '[email protected]').Id)"} New-MgDirectoryRoleMemberByRef -DirectoryRoleId $Role.Id -BodyParameter $DirObject
For more information, see Add or remove group members using Microsoft Entra ID.
Related articlescontent
@@ -1,92 +1,81 @@ ----title: Use basic permissions to access the portal-description: Learn how to use basic permissions to access the Microsoft Defender for Endpoint portal.+title: Assign Microsoft Defender for Endpoint basic permissions+description: Learn how existing Microsoft Defender for Endpoint customers can assign full or read-only portal access by using Microsoft Graph PowerShell. ms.service: defender-endpoint ms.subservice: onboard ms.author: painbar author: paulinbar ms.localizationpriority: medium ms.custom:- - msecd-doc-authoring-1014+ - msecd-doc-authoring-1015 - has-azure-ad-ps-ref- - azure-ad-ref-level-one-done -ms.collection: + - azure-ad-ref-level-one-done+ms.collection: - m365-security - tier2 ms.topic: how-to-ms.date: 06/17/2026+ms.date: 08/13/2026 appliesto: - Microsoft Defender for Endpoint Plan 1 - Microsoft Defender for Endpoint Plan 2- ai-usage: ai-assisted+#customer intent: As a security administrator, I want to assign basic Defender for Endpoint portal permissions so that users have the access required for their responsibilities. ----# Use basic permissions to access the portal---This article explains how to set up basic permissions management in the Microsoft Defender portal, including how to assign full access or read-only access using Microsoft Graph PowerShell. If you want to use basic permissions management for the Microsoft Defender portal, keep in mind that permissions are set to either full access or read only. For granular control over permissions, [use role-based access control](rbac.md).--## Assign user access using Microsoft Graph PowerShell -You can assign users with one of the following levels of permissions:+# Assign basic permissions for Microsoft Defender for Endpoint portal access -- Full access (Read and Write)-- Read-only access+Basic permissions management gives existing Microsoft Defender for Endpoint customers two portal access levels: full access or read-only access. Use Microsoft Graph PowerShell to assign the Security Administrator role for full access or the Security Reader role for read-only access. For more granular permissions, [use role-based access control](rbac.md). -### Before you begin+> [!IMPORTANT]+> Starting February 16, 2025, new Defender for Endpoint customers can use only Microsoft Defender unified role-based access control (RBAC). Existing customers can continue to use their current permission model. For more information, see [Microsoft Defender unified RBAC](/defender-xdr/manage-rbac). -Complete the following prerequisites before you assign user access:+<a name='before-you-begin'></a> -- Install Microsoft Graph PowerShell. For more information, see, [How to install Microsoft Graph PowerShell](/powershell/microsoftgraph/installation).+## Prerequisites - > [!NOTE]- > You need to run the PowerShell cmdlets in an elevated command-line.+Complete these prerequisites before you assign user access: -- Connect to your Microsoft Entra ID. For more information, see [Connect-MgGraph](/powershell/microsoftgraph/authentication-commands).+- Confirm that your organization still uses basic permissions management. If your organization switched to RBAC, you can't switch back to basic permissions.+- Install [Microsoft Graph PowerShell](/powershell/microsoftgraph/installation).+- Use an account assigned the Privileged Role Administrator role or a custom role with the required role-management permissions. Privileged Role Administrator is the least-privileged Microsoft Entra built-in role supported for this operation.+- Connect to Microsoft Graph by using **Connect-MgGraph** with the delegated `RoleManagement.ReadWrite.Directory` and `User.ReadBasic.All` permissions. For authentication options, see [Microsoft Graph PowerShell authentication commands](/powershell/microsoftgraph/authentication-commands). - - **Full access**: Users with full access can log in, view all system information and resolve alerts, submit files for deep analysis, and download the onboarding package. Assigning full access rights requires adding the users to a role, such as Security Administrator, using Microsoft Entra built-in roles.+You don't need to run PowerShell as a local Windows administrator to assign Microsoft Entra roles through Microsoft Graph. - - **Read-only access**: Users with read-only access can log in, view all alerts, and related information.+## Understand the basic access levels - They will not be able to change alert states, submit files for deep analysis or perform any state changing operations.+Basic permissions management provides these access levels: - Assigning read-only access rights requires adding the users to the "Security Reader" Microsoft Entra built-in role.+- **Full access**: Users can sign in, view system information, resolve alerts, submit files for deep analysis, and download the onboarding package. Assign the Microsoft Entra Security Administrator role to grant full access.+- **Read-only access**: Users can sign in and view alerts and related information. They can't change alert states, submit files for deep analysis, or perform other state-changing operations. Assign the Microsoft Entra Security Reader role to grant read-only access. -Use the following steps to assign security roles:--- For **read and write** access, assign users to the security administrator role by using the following command:+## Assign user access using Microsoft Graph PowerShell - ```PowerShell- $Role = Get-MgDirectoryRole -Filter "DisplayName eq 'Security Administrator'"- $UserId = (Get-MgUser -UserId "[email protected]").Id+Assign the appropriate Microsoft Entra role to each user who needs access to Defender for Endpoint. - $DirObject = @{- "@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/$UserId"- }+> [!NOTE]+> The following examples use the `directoryRole` membership API. Microsoft recommends the unified role-assignment API for new automation. **Get-MgDirectoryRole** returns only activated directory roles. If the command doesn't return the requested role, [assign the Microsoft Entra role in the admin center](/entra/identity/role-based-access-control/manage-roles-portal) or use the [unified role-assignment API](/graph/api/rbacapplication-post-roleassignments). - New-MgDirectoryRoleMemberByRef -DirectoryRoleId $Role.Id -BodyParameter $DirObject- ```+### Assign full access -- For **read-only** access, assign users to the security reader role by using the following command:+Replace `[email protected]` with the user principal name of the account that needs full access, and then run the following command: - ```PowerShell- $Role = Get-MgDirectoryRole -Filter "DisplayName eq 'Security Reader'"- $UserId = (Get-MgUser -UserId "[email protected]").Id+```powershell+New-MgDirectoryRoleMemberByRef -DirectoryRoleId (Get-MgDirectoryRole -Filter "DisplayName eq 'Security Administrator'").Id -OdataId "https://graph.microsoft.com/v1.0/directoryObjects/$((Get-MgUser -UserId '[email protected]').Id)"+``` - $DirObject = @{- "@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/$UserId"- }+### Assign read-only access - New-MgDirectoryRoleMemberByRef -DirectoryRoleId $Role.Id -BodyParameter $DirObject- ```+Replace `[email protected]` with the user principal name of the account that needs read-only access, and then run the following command: -For more information, see [Add or remove group members using Microsoft Entra ID](/azure/active-directory/fundamentals/active-directory-groups-members-azure-portal).+```powershell+New-MgDirectoryRoleMemberByRef -DirectoryRoleId (Get-MgDirectoryRole -Filter "DisplayName eq 'Security Reader'").Id -OdataId "https://graph.microsoft.com/v1.0/directoryObjects/$((Get-MgUser -UserId '[email protected]').Id)"+``` +<a name='related-articles'></a> -## Related articles+## Related content - [Assign Microsoft Entra roles to users](/entra/identity/role-based-access-control/manage-roles-portal)-- [Manage portal access using RBAC](rbac.md)---+- [Manage Defender for Endpoint portal access permissions](assign-portal-access.md)+- [Manage portal access by using RBAC](rbac.md) 