# Intune RBAC Hardener

Plans custom Intune roles, scoped assignments, scope tags, and Multi Admin Approval policies for typed review.

# Intune RBAC Hardener

Plans custom Intune roles, scoped assignments, scope tags, and Multi Admin Approval policies for typed review.

## Classification

| Field | Value |
| --- | --- |
| Agent ID | `intune-rbac-hardener` |
| Version | `0.1.0` |
| Mode | `write` |
| Tier | `agent` |
| Category | `devices` |
| Required Entra tier | `free` |
| Preferred model | `not pinned` |
| Minimum app version | `0.8.0` |
| Author | OpenAdminOS · verified |
| Last changed | 2026-12-04 · `498ef5d6` |

## Execution

This agent runs `agent.mjs` inside the experimental `mxc` sandbox. The Graph and LLM steps below are broker permissions, not host-interpreted pipeline steps.

## Tenant Data Access

| Step | Graph call | Scopes |
| --- | --- | --- |
| Read roleDefinitions | `GET /deviceManagement/roleDefinitions` | `DeviceManagementRBAC.Read.All` |
| Read roleAssignments | `GET /deviceManagement/roleAssignments` | `DeviceManagementRBAC.Read.All` |
| Read role assignment details | `GET /deviceManagement/roleAssignments/{id}` | `DeviceManagementRBAC.Read.All` |
| Read scopeTags | `GET /deviceManagement/roleScopeTags` | `DeviceManagementRBAC.Read.All` |
| Read maaPolicies | `GET /deviceManagement/operationApprovalPolicies` | `DeviceManagementRBAC.Read.All` |
| Read entraAssignments | `GET /roleManagement/directory/roleAssignments` | `RoleManagement.Read.Directory` |
| Read entraDefinitions | `GET /roleManagement/directory/roleDefinitions` | `RoleManagement.Read.Directory` |
| Read users | `GET /users` | `User.Read.All` |
| Read group | `GET /groups/{id}` | `GroupMember.Read.All` |
| Read groupMembers | `GET /groups/{id}/transitiveMembers` | `GroupMember.Read.All` |
| Read direct approver group members | `GET /groups/{id}/members` | `GroupMember.Read.All` |

## Graph Scopes

- `DeviceManagementRBAC.Read.All`
- `DeviceManagementRBAC.ReadWrite.All`
- `GroupMember.Read.All`
- `RoleManagement.Read.Directory`
- `User.Read.All`

## Write Behavior

At most 8 actions per run (manifest limit). Plans above the limit fail before confirmation and are checked again before any changes are applied.

| Step | Action | Confirmation | Scopes |
| --- | --- | --- | --- |
| Create role | Graph write | `APPLY N RBAC CHANGES` | `DeviceManagementRBAC.ReadWrite.All` |
| Create assignment | Graph write | `APPLY N RBAC CHANGES` | `DeviceManagementRBAC.ReadWrite.All` |
| Create tag | Graph write | `APPLY N RBAC CHANGES` | `DeviceManagementRBAC.ReadWrite.All` |
| Create auto assignment | Graph write | `APPLY N RBAC CHANGES` | `DeviceManagementRBAC.ReadWrite.All` |
| Create policy | Graph write | `APPLY N RBAC CHANGES` | `DeviceManagementRBAC.ReadWrite.All` |

Write agents always pause for confirmation in OpenAdminOS. Destructive operations require the typed confirmation phrase shown by the app.

## LLM Use

| Step | Settings |
| --- | --- |
| Summarize the verified change counts | max tokens 120 |

## Settings

| Setting | Type | Default | Description |
| --- | --- | --- | --- |
| `steps` | string | None | Comma-separated IDs. Choose server-operations-role, workstation-helpdesk-role, servers-scope-tag, maa-deviceAction, maa-script, or maa-role. |
| `memberGroupIds` | string | None | Comma-separated Entra object IDs for the administrators. |
| `workstationGroupId` | string | None | Entra object ID for the workstation device group. |
| `workstationScopeTagId` | string | None | Intune ID for an existing workstation scope tag. |
| `serverDeviceGroupId` | string | None | Entra object ID for the server device group. |
| `approverGroupIds` | string | None | Comma-separated Entra object IDs for approval groups. Device actions and Scripts need at least two distinct enabled human approvers across the selected groups. Each Roles group needs at least two enabled direct human members with approval access. |
| `policyPlatform` | string | None | Choose notApplicable, androidDeviceAdministrator, androidEnterprise, iOSiPadOS, macOS, windows10AndLater, windows81AndLater, or windows10X. |
| `breakGlass` | string | None | Comma-separated Entra object IDs or user principal names. |

## Source

- [Agent source](https://github.com/OpenAdminOS/OpenAdminOS/tree/main/agents/intune-rbac-hardener)
- [Manifest](https://github.com/OpenAdminOS/OpenAdminOS/blob/main/agents/intune-rbac-hardener/manifest.yaml)
