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/role-based-access-control/custom-roles-rest.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,9 +34,9 @@ You must use the following version:
34
34
35
35
For more information, see [API versions of Azure RBAC REST APIs](/rest/api/authorization/versions).
36
36
37
-
## List all custom roles in a tenant
37
+
## List all custom role definitions
38
38
39
-
To list all custom roles in a tenant, use the [Role Definitions - List](/rest/api/authorization/role-definitions/list) REST API.
39
+
To list all custom role definitions in a tenant, use the [Role Definitions - List](/rest/api/authorization/role-definitions/list) REST API.
40
40
41
41
1. Start with the following request:
42
42
@@ -51,7 +51,7 @@ To list all custom roles in a tenant, use the [Role Definitions - List](/rest/ap
51
51
> | --- | --- |
52
52
> | `$filter=type+eq+'CustomRole'` | Filter based on the CustomRole type |
53
53
54
-
The following example lists all custom roles in a tenant:
54
+
The following example lists all custom role definitions in a tenant:
55
55
56
56
**Request**
57
57
@@ -104,9 +104,9 @@ To list all custom roles in a tenant, use the [Role Definitions - List](/rest/ap
104
104
}
105
105
```
106
106
107
-
## List all custom roles at a scope
107
+
## List all custom role definitions at a scope
108
108
109
-
To list custom roles at a scope, use the [Role Definitions - List](/rest/api/authorization/role-definitions/list) REST API.
109
+
To list custom role definitions at a scope, use the [Role Definitions - List](/rest/api/authorization/role-definitions/list) REST API.
110
110
111
111
1. Start with the following request:
112
112
@@ -131,7 +131,7 @@ To list custom roles at a scope, use the [Role Definitions - List](/rest/api/aut
131
131
> | --- | --- |
132
132
> | `$filter=type+eq+'CustomRole'` | Filter based on the CustomRole type |
133
133
134
-
The following example lists all custom roles in a subscription:
134
+
The following example lists all custom role definitions in a subscription:
135
135
136
136
**Request**
137
137
@@ -186,7 +186,7 @@ To list custom roles at a scope, use the [Role Definitions - List](/rest/api/aut
186
186
187
187
## List a custom role definition by name
188
188
189
-
To get information about a custom role by its display name, use the [Role Definitions - Get](/rest/api/authorization/role-definitions/get) REST API.
189
+
To get information about a custom role definition by its display name, use the [Role Definitions - Get](/rest/api/authorization/role-definitions/get) REST API.
190
190
191
191
1. Start with the following request:
192
192
@@ -211,7 +211,7 @@ To get information about a custom role by its display name, use the [Role Defini
211
211
> | --- | --- |
212
212
> | `$filter=roleName+eq+'{roleDisplayName}'` | Use the URL encoded form of the exact display name of the role. For instance, `$filter=roleName+eq+'Virtual%20Machine%20Contributor'` |
213
213
214
-
The following example lists a custom role named Billing Reader Plus in a subscription:
214
+
The following example lists a custom role definition named Billing Reader Plus in a subscription:
215
215
216
216
**Request**
217
217
@@ -266,7 +266,7 @@ To get information about a custom role by its display name, use the [Role Defini
266
266
267
267
## List a custom role definition by ID
268
268
269
-
To get information about a custom role by its unique identifier, use the [Role Definitions - Get](/rest/api/authorization/role-definitions/get) REST API.
269
+
To get information about a custom role definition by its unique identifier, use the [Role Definitions - Get](/rest/api/authorization/role-definitions/get) REST API.
270
270
271
271
1. Use the [Role Definitions - List](/rest/api/authorization/role-definitions/list) REST API to get the GUID identifier for the role.
272
272
@@ -288,7 +288,7 @@ To get information about a custom role by its unique identifier, use the [Role D
288
288
289
289
1. Replace *{roleDefinitionId}* with the GUID identifier of the role definition.
290
290
291
-
The following example lists a custom role with the identifier 17adabda-4bf1-4f4e-8c97-1f0cab6dea1c in a subscription:
291
+
The following example lists a custom role definition with the identifier 17adabda-4bf1-4f4e-8c97-1f0cab6dea1c in a subscription:
292
292
293
293
**Request**
294
294
@@ -440,7 +440,7 @@ To create a custom role, use the [Role Definitions - Create Or Update](/rest/api
440
440
441
441
To update a custom role, use the [Role Definitions - Create Or Update](/rest/api/authorization/role-definitions/create-or-update) REST API. To call this API, you must be signed in with a user that is assigned a role that has the `Microsoft.Authorization/roleDefinitions/write` permission on all the `assignableScopes`. Of the built-in roles, only [Owner](built-in-roles.md#owner) and [User Access Administrator](built-in-roles.md#user-access-administrator) include this permission.
442
442
443
-
1. Use the [Role Definitions - List](/rest/api/authorization/role-definitions/list) or [Role Definitions - Get](/rest/api/authorization/role-definitions/get) REST API to get information about the custom role. For more information, see the earlier [List custom roles](#list-custom-roles) section.
443
+
1. Use the [Role Definitions - List](/rest/api/authorization/role-definitions/list) or [Role Definitions - Get](/rest/api/authorization/role-definitions/get) REST API to get information about the custom role. For more information, see the earlier [List all custom role definitions](#list-all-custom-role-definitions) section.
444
444
445
445
1. Start with the following request:
446
446
@@ -532,7 +532,7 @@ To delete a custom role, use the [Role Definitions - Delete](/rest/api/authoriza
532
532
533
533
1. Remove any role assignments that use the custom role. For more information, see [Find role assignments to delete a custom role](custom-roles.md#find-role-assignments-to-delete-a-custom-role).
534
534
535
-
1. Use the [Role Definitions - List](/rest/api/authorization/role-definitions/list) or [Role Definitions - Get](/rest/api/authorization/role-definitions/get) REST API to get the GUID identifier of the custom role. For more information, see the earlier [List custom roles](#list-custom-roles) section.
535
+
1. Use the [Role Definitions - List](/rest/api/authorization/role-definitions/list) or [Role Definitions - Get](/rest/api/authorization/role-definitions/get) REST API to get the GUID identifier of the custom role. For more information, see the earlier [List all custom role definitions](#list-all-custom-role-definitions) section.
0 commit comments