Skip to content

Commit 5c130d4

Browse files
committed
Add condition to subscription administrator steps
1 parent aa4bcc4 commit 5c130d4

File tree

3 files changed

+36
-6
lines changed

3 files changed

+36
-6
lines changed
Loading
8.88 KB
Loading

articles/role-based-access-control/role-assignments-portal-subscription-admin.md

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
---
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).
44
services: active-directory
55
author: rolyon
66
manager: amycolannino
77
ms.service: role-based-access-control
88
ms.topic: how-to
99
ms.workload: identity
10-
ms.date: 05/10/2023
10+
ms.date: 01/30/2024
1111
ms.author: rolyon
1212
ms.custom: subject-rbac-steps
1313
---
1414

15-
# Assign a user as an administrator of an Azure subscription
15+
# Assign a user as an administrator of an Azure subscription with conditions
1616

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.
1820

1921
## Prerequisites
2022

@@ -86,7 +88,35 @@ The [Owner](built-in-roles.md#owner) role grant full access to manage all resour
8688

8789
1. Click **Next**.
8890

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
90120

91121
1. On the **Review + assign** tab, review the role assignment settings.
92122

0 commit comments

Comments
 (0)