RoleManagement.Read.Defender
- Resource
- RoleManagement what it applies to
- Access
- Read read only, no changes
- Scope
- Defender how far it reaches
Allows the app to read the role-based access control (RBAC) settings for your company's directory, on behalf of the signed-in user. This includes reading M365 Defender role definitions and role assignments.
As an application permission: Allows the app to read the role-based access control (RBAC) settings for your company's directory, without a signed-in user.
| Method | API path | Works as | Smaller option | Cmdlet |
|---|---|---|---|---|
| /roleManagement 5 | ||||
| GET | AD | — | ||
| GET | AD | — | ||
| GET | AD | |||
| GET | AD | |||
| GET | AD | — | ||
| /rolemanagement 4 | ||||
| GET | / | AD | — | |
| GET | / | AD | — | |
| GET | / | AD | — | |
| GET | / | AD | — | |
| No APIs match these filters. | ||||
A = application, D = delegated. Path parameters are shortened to {id} and duplicate paths are merged. Least privileged flags come from Microsoft's docs and permissions reference.
Microsoft Graph PowerShell cmdlets that call the APIs above. Connect with Connect-MgGraph -Scopes RoleManagement.Read.Defender.
| Cmdlet | Module | Calls |
|---|---|---|
| Get-MgBetaRoleManagementCloudPcRoleAssignment | Beta.DeviceManagement.Enrollment | GET /roleManagement/cloudPc/roleAssignments, GET /roleManagement/cloudPC/roleAssignments/{id} |
| Get-MgBetaRoleManagementCloudPcRoleDefinition | Beta.DeviceManagement.Enrollment | GET /roleManagement/cloudPC/roleDefinitions, GET /roleManagement/cloudPC/roleDefinitions/{id} |
Granting RoleManagement.Read.Defender lets an app read these Microsoft Graph resources in your tenant.
customAppScopeGraph reference
| Property | Type | Description |
|---|---|---|
| customAttributes | customAppScopeAttributesDictionary | An open dictionary type that holds workload-specific properties for the scope object. |
| displayName | String | The display name of the app-specific resource represented by the app scope. Provided for display purposes since the appScopeId is often an immutable, non-human-readable ID. Read-only. Inherited from appScope. |
| id | String | The unique identifier of an app-specific container or resource that represents the scope of the assignment. Usually the immutable ID of the resource. The scope of an assignment determines the set of resources for which the principal has been granted access. Required. Inherited from appScope. |
| type | String | The type of app-specific resource represented by the app scope. Provided for display purposes, so a user interface can convey to the user the kind of app-specific resource represented by the app scope. Read-only. Inherited from appScope. |
unifiedRoleAssignmentGraph reference
| Property | Type | Description |
|---|---|---|
| appScopeId | String | Identifier of the app specific scope when the assignment scope is app specific. The scope of an assignment determines the set of resources for which the principal has been granted access. App scopes are scopes that are defined and understood by a resource application only. For the entitlement management provider, use this property to specify a catalog. For example, /AccessPackageCatalog/beedadfe-01d5-4025-910b-84abb9369997. Supports $filter (eq, in). For example, /roleManagement/entitlementManagement/roleAssignments?$filter=appScopeId eq '/AccessPackageCatalog/{catalog id}'. |
| directoryScopeId | String | Identifier of the directory object representing the scope of the assignment. The scope of an assignment determines the set of resources for which the principal has been granted access. Directory scopes are shared scopes stored in the directory that are understood by multiple applications, unlike app scopes that are defined and understood by a resource application only. Supports $filter (eq, in). |
| id | String | The unique identifier for the unifiedRoleAssignment. Key, not nullable, Read-only. |
| principalId | String | Identifier of the principal to which the assignment is granted. Supported principals are users, role-assignable groups, and service principals. Supports $filter (eq, in). |
| roleDefinitionId | String | Identifier of the unifiedRoleDefinition the assignment is for. Read-only. Supports $filter (eq, in). |
unifiedRoleAssignmentMultipleGraph reference
| Property | Type | Description |
|---|---|---|
| appScopeIds | String collection | Ids of the app specific scopes when the assignment scopes are app specific. The scopes of an assignment determine the set of resources for which the principal has access. Directory scopes are shared scopes stored in the directory that are understood by multiple applications. Use / for tenant-wide scope. App scopes are scopes that are defined and understood by this application only. |
| description | String | Description of the role assignment. |
| directoryScopeIds | String collection | Ids of the directory objects that represent the scopes of the assignment. The scopes of an assignment determine the set of resources for which the principals have been granted access. Directory scopes are shared scopes stored in the directory that are understood by multiple applications. App scopes are scopes that are defined and understood by this application only. |
| displayName | String | Name of the role assignment. Required. |
| id | String | The unique identifier for the unifiedRoleAssignmentMultiple object. Key, not nullable, Read-only. |
| principalIds | String collection | Identifiers of the principals to which the assignment is granted. Supports $filter (any operator only). |
| roleDefinitionId | String | Identifier of the unifiedRoleDefinition the assignment is for. |
unifiedRoleDefinitionGraph reference
| Property | Type | Description |
|---|---|---|
| deletedDateTime | DateTimeOffset | The date and time when the custom role definition was deleted. The value is null for active and restored role definitions. Read-only. |
| description | String | The description for the unifiedRoleDefinition. Read-only when isBuiltIn is true. |
| displayName | String | The display name for the unifiedRoleDefinition. Read-only when isBuiltIn is true. Required. Supports $filter (eq, in). |
| id | String | The unique identifier for the role definition. Key, not nullable, Read-only. Inherited from entity. Supports $filter (eq, in). |
| isBuiltIn | Boolean | Flag indicating whether the role definition is part of the default set included in Microsoft Entra or a custom definition. Read-only. Supports $filter (eq, in). |
| isEnabled | Boolean | Flag indicating whether the role is enabled for assignment. If false the role is not available for assignment. Read-only when isBuiltIn is true. |
| isPrivileged | Boolean | Flag indicating whether the role is privileged. Microsoft Entra ID defines a role as privileged if it contains at least one sensitive resource action in the allowedResourceActions collection of rolePermissions. Applies only to actions in the microsoft.directory resource namespace. Nullable. A value of null indicates that the privileged classification is unavailable, not that the role is nonprivileged. Read-only. Supports $filter (eq). |
| resourceScopes | String collection | List of the scopes or permissions the role definition applies to. Currently only / is supported. Read-only when isBuiltIn is true. DO NOT USE. This will be deprecated soon. Attach scope to role assignment. |
| rolePermissions | unifiedRolePermission collection | List of permissions included in the role. Read-only when isBuiltIn is true. Required. |
| templateId | String | Custom template identifier that can be set when isBuiltIn is false but is read-only when isBuiltIn is true. This identifier is typically used if one needs an identifier to be the same across different directories. |
| version | String | Indicates version of the role definition. Read-only when **i |