We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eeed72 commit fa8f289Copy full SHA for fa8f289
articles/role-based-access-control/includes/query/authorization-unused-custom-roles.md
@@ -7,13 +7,13 @@ ms.author: rolyon
7
---
8
9
```kusto
10
-AuthorizationResources
+authorizationresources
11
| where type =~ "microsoft.authorization/roledefinitions"
12
| where tolower(properties.type) == "customrole"
13
| extend rdId = tolower(id)
14
| extend Scope = tolower(properties.assignableScopes)
15
| join kind = leftouter (
16
17
| where type =~ "microsoft.authorization/roleassignments"
18
| extend RoleId = tolower(tostring(properties.roleDefinitionId))
19
| summarize RoleAssignmentCount = count() by RoleId
0 commit comments