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
Copy file name to clipboardExpand all lines: articles/lighthouse/how-to/monitor-delegation-changes.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ az role assignment create --assignee 00000000-0000-0000-0000-000000000000 --role
61
61
62
62
### Remove elevated access for the Global Administrator account
63
63
64
-
After you've assigned the Monitoring Reader role at root scope to the desired account, be sure to [remove the elevated access](../../role-based-access-control/elevate-access-global-admin.md#remove-elevated-access) for the Global Administrator account, as this level of access will no longer be needed.
64
+
After you've assigned the Monitoring Reader role at root scope to the desired account, be sure to [remove the elevated access](../../role-based-access-control/elevate-access-global-admin.md) for the Global Administrator account, as this level of access will no longer be needed.
### Step 1: Elevate access for a Global Administrator
41
43
42
44
Follow these steps to elevate access for a Global Administrator using the Azure portal.
43
45
@@ -78,7 +80,7 @@ Follow these steps to elevate access for a Global Administrator using the Azure
78
80
79
81
1. Perform the steps in the following section to remove your elevated access.
80
82
81
-
### Remove elevated access
83
+
### Step 2: Remove elevated access
82
84
83
85
To remove the User Access Administrator role assignment at root scope (`/`), follow these steps.
84
86
@@ -99,13 +101,15 @@ To remove the User Access Administrator role assignment at root scope (`/`), fol
99
101
> [!NOTE]
100
102
> If you're using [Privileged Identity Management](../active-directory/privileged-identity-management/pim-configure.md), deactivating your role assignment does not change the **Access management for Azure resources** toggle to **No**. To maintain least privileged access, we recommend that you set this toggle to **No** before you deactivate your role assignment.
101
103
102
-
## Azure PowerShell
104
+
# [PowerShell](#tab/powershell)
105
+
106
+
### Step 1: Elevate access for a Global Administrator
Use the Azure portal or REST API to elevate access for a Global Administrator.
105
109
106
-
### List role assignment at root scope (/)
110
+
### Step 2: List role assignment at root scope (/)
107
111
108
-
To list the User Access Administrator role assignment for a user at root scope (`/`), use the [Get-AzRoleAssignment](/powershell/module/az.resources/get-azroleassignment) command.
112
+
Once you have elevated access, to list the User Access Administrator role assignment for a user at root scope (`/`), use the [Get-AzRoleAssignment](/powershell/module/az.resources/get-azroleassignment) command.
109
113
110
114
```azurepowershell
111
115
Get-AzRoleAssignment | where {$_.RoleDefinitionName -eq "User Access Administrator" `
@@ -124,7 +128,7 @@ ObjectType : User
124
128
CanDelegate : False
125
129
```
126
130
127
-
### Remove elevated access
131
+
### Step 3: Remove elevated access
128
132
129
133
To remove the User Access Administrator role assignment for yourself or another user at root scope (`/`), follow these steps.
130
134
@@ -137,9 +141,9 @@ To remove the User Access Administrator role assignment for yourself or another
### Step 1: Elevate access for a Global Administrator
143
147
144
148
Use the following basic steps to elevate access for a Global Administrator using the Azure CLI.
145
149
@@ -155,9 +159,9 @@ Use the following basic steps to elevate access for a Global Administrator using
155
159
156
160
1. Perform the steps in a later section to remove your elevated access.
157
161
158
-
### List role assignment at root scope (/)
162
+
### Step 2: List role assignment at root scope (/)
159
163
160
-
To list the User Access Administrator role assignment for a user at root scope (`/`), use the [az role assignment list](/cli/azure/role/assignment#az-role-assignment-list) command.
164
+
Once you have elevated access, to list the User Access Administrator role assignment for a user at root scope (`/`), use the [az role assignment list](/cli/azure/role/assignment#az-role-assignment-list) command.
161
165
162
166
```azurecli
163
167
az role assignment list --role "User Access Administrator" --scope "/"
@@ -181,7 +185,7 @@ az role assignment list --role "User Access Administrator" --scope "/"
181
185
182
186
```
183
187
184
-
### Remove elevated access
188
+
### Step 3: Remove elevated access
185
189
186
190
To remove the User Access Administrator role assignment for yourself or another user at root scope (`/`), follow these steps.
187
191
@@ -193,7 +197,7 @@ To remove the User Access Administrator role assignment for yourself or another
193
197
az role assignment delete --assignee [email protected] --role "User Access Administrator" --scope "/"
194
198
```
195
199
196
-
## REST API
200
+
# [REST API](#tab/rest-api)
197
201
198
202
### Prerequisites
199
203
@@ -205,7 +209,7 @@ You must use the following versions:
205
209
206
210
For more information, see [API versions of Azure RBAC REST APIs](/rest/api/authorization/versions).
207
211
208
-
### Elevate access for a Global Administrator
212
+
### Step 1: Elevate access for a Global Administrator
209
213
210
214
Use the following basic steps to elevate access for a Global Administrator using the REST API.
211
215
@@ -221,27 +225,27 @@ Use the following basic steps to elevate access for a Global Administrator using
221
225
222
226
1. Perform the steps in a later section to remove your elevated access.
223
227
224
-
### List role assignments at root scope (/)
228
+
### Step 2: List role assignments at root scope (/)
225
229
226
-
You can list all of the role assignments for a user at root scope (`/`).
230
+
Once you have elevated access, you can list all of the role assignments for a user at root scope (`/`).
227
231
228
232
- Call [Role Assignments - List For Scope](/rest/api/authorization/role-assignments/list-for-scope) where `{objectIdOfUser}` is the object ID of the user whose role assignments you want to retrieve.
229
233
230
234
```http
231
235
GET https://management.azure.com/providers/Microsoft.Authorization/roleAssignments?api-version=2022-04-01&$filter=principalId+eq+'{objectIdOfUser}'
232
236
```
233
237
234
-
### List deny assignments at root scope (/)
238
+
### Step 3: List deny assignments at root scope (/)
235
239
236
-
You can list all of the deny assignments for a user at root scope (`/`).
240
+
Once you have elevated access, you can list all of the deny assignments for a user at root scope (`/`).
237
241
238
-
- Call GET denyAssignments where `{objectIdOfUser}` is the object ID of the user whose deny assignments you want to retrieve.
242
+
- Call [Deny Assignments - List For Scope](/rest/api/authorization/deny-assignments/list-for-scope) where `{objectIdOfUser}` is the object ID of the user whose deny assignments you want to retrieve.
239
243
240
244
```http
241
245
GET https://management.azure.com/providers/Microsoft.Authorization/denyAssignments?api-version=2022-04-01&$filter=gdprExportPrincipalId+eq+'{objectIdOfUser}'
242
246
```
243
247
244
-
### Remove elevated access
248
+
### Step 4: Remove elevated access
245
249
246
250
When you call `elevateAccess`, you create a role assignment for yourself, so to revoke those privileges you need to remove the User Access Administrator role assignment for yourself at root scope (`/`).
247
251
@@ -332,6 +336,8 @@ When you call `elevateAccess`, you create a role assignment for yourself, so to
## View elevate access log entries in the Directory Activity logs
336
342
337
343
When access is elevated, an entry is added to the logs. As a Global Administrator in Microsoft Entra ID, you might want to check when access was elevated and who did it. Elevate access log entries do not appear in the standard activity logs, but instead appear in the Directory Activity logs. This section describes different ways that you can view the elevate access log entries.
0 commit comments