You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> |**Examples**|`@Request[Microsoft.Authorization/roleAssignments:PrincipalId] ForAnyOfAnyValues:GuidEquals {28c35fea-2099-4cf5-8ad9-473547bc9423, 86951b8b-723a-407b-a74a-1bca3f0c95d0}`<br/>[Example: Constrain roles and specific groups](delegate-role-assignments-examples.md#example-constrain-roles-and-specific-groups)|
73
73
74
74
### Principal type
@@ -82,7 +82,7 @@ This section lists the authorization attributes you can use in your condition ex
> |**Examples**|`@Request[Microsoft.Authorization/roleAssignments:PrincipalType] ForAnyOfAnyValues:StringEqualsIgnoreCase {'User', 'Group'}`<br/>[Example: Constrain roles and principal types](delegate-role-assignments-examples.md#example-constrain-roles-and-principal-types)|
If strings include special characters, such as square brackets ([ ]), you'll need to escape these characters with a backslash (\\).
195
+
165
196
## List a condition
166
197
167
198
To list a role assignment condition, use [Get-AzRoleAssignment](/powershell/module/az.resources/get-azroleassignment). For more information, see [List Azure role assignments using Azure PowerShell](role-assignments-list-powershell.md).
@@ -65,6 +65,35 @@ Fix any [condition format or syntax](conditions-format.md) issues. Alternatively
65
65
66
66
## Issues in the visual editor
67
67
68
+
### Symptom - Condition editor appears when editing a condition
69
+
70
+
You created a condition using a template described in [Delegate Azure role assignment management to others with conditions](./delegate-role-assignments-portal.md). When you try to edit the condition, you see the advanced condition editor.
71
+
72
+
:::image type="content" source="./media/conditions-troubleshoot/condition-editor.png" alt-text="Screenshot of condition editor that shows options to edit a condition." lightbox="./media/conditions-troubleshoot/condition-editor.png":::
73
+
74
+
When you previously edited the condition, you edited using the condition template.
75
+
76
+
:::image type="content" source="./media/shared/condition-templates-edit.png" alt-text="Screenshot of condition templates with matching template enabled." lightbox="./media/shared/condition-templates-edit.png":::
77
+
78
+
**Cause**
79
+
80
+
The condition doesn't match the pattern for the template.
81
+
82
+
**Solution 1**
83
+
84
+
Edit the condition to match one of the following template patterns.
| Constrain roles and principal types |[Example: Constrain roles and principal types](delegate-role-assignments-examples.md#example-constrain-roles-and-principal-types)|
90
+
| Constrain roles and principals |[Example: Constrain roles and specific groups](delegate-role-assignments-examples.md#example-constrain-roles-and-specific-groups)|
91
+
| Allow all except specific roles |[Example: Allow most roles, but don't allow others to assign roles](delegate-role-assignments-examples.md#example-allow-most-roles-but-dont-allow-others-to-assign-roles)|
92
+
93
+
**Solution 2**
94
+
95
+
Delete the condition and recreate it using the steps at [Delegate Azure role assignment management to others with conditions](./delegate-role-assignments-portal.md).
96
+
68
97
### Symptom - Principal does not appear in Attribute source
69
98
70
99
When you try to add a role assignment with a condition, **Principal** doesn't appear in the **Attribute source** list.
Copy file name to clipboardExpand all lines: articles/role-based-access-control/delegate-role-assignments-portal.md
+35-2Lines changed: 35 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ manager: amycolannino
6
6
ms.service: role-based-access-control
7
7
ms.subservice: conditions
8
8
ms.topic: how-to
9
-
ms.date: 01/30/2024
9
+
ms.date: 04/15/2024
10
10
ms.author: rolyon
11
11
#Customer intent: As a dev, devops, or it admin, I want to delegate Azure role assignment management to other users who are closer to the decision, but want to limit the scope of the role assignments.
12
12
---
@@ -73,6 +73,7 @@ There are two ways that you can add a condition. You can use a condition templat
73
73
| Constrain roles | Allow user to only assign roles you select |
74
74
| 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) |
75
75
| Constrain roles and principals | Allow user to only assign roles you select<br/>Allow user to only assign these roles to principals you select |
76
+
| Allow all except specific roles | Allow user to assign all roles except the roles you select |
76
77
77
78
1. In the configure pane, add the required configurations.
78
79
@@ -135,7 +136,7 @@ If the condition templates don't work for your scenario or if you want more cont
@@ -176,6 +177,38 @@ If the condition templates don't work for your scenario or if you want more cont
176
177
177
178
If the delegate attempts to assign a role that is outside the conditions using an API, the role assignment fails with an error. For more information, see [Symptom - Unable to assign a role](./troubleshooting.md#symptom---unable-to-assign-a-role).
178
179
180
+
## Edit a condition
181
+
182
+
There are two ways that you can edit a condition. You can use the condition template or you can use the condition editor.
183
+
184
+
1. In the Azure portal, open **Access control (IAM)** page for the role assignment that has a condition that you want to view, edit, or delete.
185
+
186
+
1. Select the **Role assignments** tab and find the role assignment.
187
+
188
+
1. In the **Condition** column, select **View/Edit**.
189
+
190
+
If you don't see the **View/Edit** link, be sure you're looking at the same scope as the role assignment.
191
+
192
+
:::image type="content" source="./media/shared/condition-role-assignments-list-edit.png" alt-text="Screenshot of role assignment list with View/Edit link for condition." lightbox="./media/shared/condition-role-assignments-list-edit.png":::
193
+
194
+
The **Add role assignment condition** page appears. This page will look different depending on whether the condition matches an existing template.
195
+
196
+
1. If the condition matches an existing template, select **Configure** to edit the condition.
197
+
198
+
:::image type="content" source="./media/shared/condition-templates-edit.png" alt-text="Screenshot of condition templates with matching template enabled." lightbox="./media/shared/condition-templates-edit.png":::
199
+
200
+
1. If the condition doesn't match an existing template, use the advanced condition editor to edit the condition.
201
+
202
+
For example, to edit a condition, scroll down to the build expression section and update the attributes, operator, or values.
203
+
204
+
:::image type="content" source="./media/delegate-role-assignments-portal/condition-editor-build-expression.png" alt-text="Screenshot of condition editor that shows options to edit build expression." lightbox="./media/delegate-role-assignments-portal/condition-editor-build-expression.png":::
205
+
206
+
To edit the condition directly, select the **Code** editor type and then edit the code for the condition.
207
+
208
+
:::image type="content" source="./media/delegate-role-assignments-portal/condition-editor-code.png" alt-text="Screenshot of condition editor that shows Code editor type." lightbox="./media/delegate-role-assignments-portal/condition-editor-code.png":::
209
+
210
+
1. When finished, click **Save** to update the condition.
211
+
179
212
## Next steps
180
213
181
214
-[Delegate Azure access management to others](delegate-role-assignments-overview.md)
0 commit comments