|
1 | 1 | ---
|
2 |
| -title: Assign a user as an administrator of an Azure subscription - Azure RBAC |
3 |
| -description: Learn how to make a user an administrator of an Azure subscription using the Azure portal and Azure role-based access control (Azure RBAC). |
| 2 | +title: Assign a user as an administrator of an Azure subscription with conditions - Azure RBAC |
| 3 | +description: Learn how to make a user an administrator of an Azure subscription with conditions using the Azure portal and Azure role-based access control (Azure RBAC). |
4 | 4 | services: active-directory
|
5 | 5 | author: rolyon
|
6 | 6 | manager: amycolannino
|
7 | 7 | ms.service: role-based-access-control
|
8 | 8 | ms.topic: how-to
|
9 | 9 | ms.workload: identity
|
10 |
| -ms.date: 05/10/2023 |
| 10 | +ms.date: 01/30/2024 |
11 | 11 | ms.author: rolyon
|
12 | 12 | ms.custom: subject-rbac-steps
|
13 | 13 | ---
|
14 | 14 |
|
15 |
| -# Assign a user as an administrator of an Azure subscription |
| 15 | +# Assign a user as an administrator of an Azure subscription with conditions |
16 | 16 |
|
17 |
| -To make a user an administrator of an Azure subscription, assign them the [Owner](built-in-roles.md#owner) role at the subscription scope. The Owner role gives the user full access to all resources in the subscription, including the permission to grant access to others. These steps are the same as any other role assignment. |
| 17 | +To make a user an administrator of an Azure subscription, you assign them the [Owner](built-in-roles.md#owner) role at the subscription scope. The Owner role gives the user full access to all resources in the subscription, including the permission to grant access to others. Since the Owner role is a highly privileged role, Microsoft recommends you add a condition to constrain the role assignment. For example, you can allow Alice to only assign the Virtual Machine Contributor role to service principals. |
| 18 | + |
| 19 | +This article describes how to assign a user as an administrator of an Azure subscription with conditions. These steps are the same as any other role assignment. |
18 | 20 |
|
19 | 21 | ## Prerequisites
|
20 | 22 |
|
@@ -86,7 +88,35 @@ The [Owner](built-in-roles.md#owner) role grant full access to manage all resour
|
86 | 88 |
|
87 | 89 | 1. Click **Next**.
|
88 | 90 |
|
89 |
| -## Step 5: Assign role |
| 91 | +## Step 5: Add a condition |
| 92 | + |
| 93 | +Since the Owner role is a highly privileged role, Microsoft recommends you add a condition to constrain the role assignment. |
| 94 | + |
| 95 | +1. On the **Conditions** tab under **What user can do**, select the **Allow user to only assign selected roles to selected principals (fewer privileges)** option. |
| 96 | + |
| 97 | + :::image type="content" source="./media/role-assignments-portal-subscription-admin/condition-constrained-owner.png" alt-text="Screenshot of Add role assignment with the constrained option selected." lightbox="./media/role-assignments-portal-subscription-admin/condition-constrained-owner.png"::: |
| 98 | + |
| 99 | +1. Select **Select roles and principals**. |
| 100 | + |
| 101 | + The Add role assignment condition page appears with a list of condition templates. |
| 102 | + |
| 103 | + :::image type="content" source="./media/shared/condition-templates.png" alt-text="Screenshot of Add role assignment condition with a list of condition templates." lightbox="./media/shared/condition-templates.png"::: |
| 104 | + |
| 105 | +1. Select a condition template and then select **Configure**. |
| 106 | + |
| 107 | + | Condition template | Select this template to | |
| 108 | + | --- | --- | |
| 109 | + | Constrain roles | Allow user to only assign roles you select | |
| 110 | + | Constrain roles and principal types | Allow user to only assign roles you select<br/>Allow user to only assign these roles to principal types you select (users, groups, or service principals) | |
| 111 | + | Constrain roles and principals | Allow user to only assign roles you select<br/>Allow user to only assign these roles to principals you select | |
| 112 | + |
| 113 | +1. In the configure pane, add the required configurations. |
| 114 | + |
| 115 | + :::image type="content" source="./media/shared/condition-template-configure-pane.png" alt-text="Screenshot of configure pane for a condition with selection added." lightbox="./media/shared/condition-template-configure-pane.png"::: |
| 116 | + |
| 117 | +1. Select **Save** to add the condition to the role assignment. |
| 118 | + |
| 119 | +## Step 6: Assign role |
90 | 120 |
|
91 | 121 | 1. On the **Review + assign** tab, review the role assignment settings.
|
92 | 122 |
|
|
0 commit comments