Skip to content

Commit cd970c0

Browse files
authored
Merge pull request #202232 from rolyon/rolyon-rbac-custom-roles-assignablescopes-error
[Azure RBAC] Assignable scopes error
2 parents 27094b5 + b50f461 commit cd970c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

articles/role-based-access-control/troubleshooting.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.service: role-based-access-control
99
ms.workload: identity
1010
ms.tgt_pltfrm: na
1111
ms.topic: troubleshooting
12-
ms.date: 02/18/2022
12+
ms.date: 06/21/2022
1313
ms.author: rolyon
1414
ms.custom: seohack1, devx-track-azurecli, devx-track-azurepowershell
1515
---
@@ -82,6 +82,10 @@ Azure supports up to **500** role assignments per management group. This limit i
8282
- If you are unable to delete a custom role and get the error message "There are existing role assignments referencing role (code: RoleDefinitionHasAssignments)", then there are role assignments still using the custom role. Remove those role assignments and try to delete the custom role again.
8383
- If you get the error message "Role definition limit exceeded. No more role definitions can be created (code: RoleDefinitionLimitExceeded)" when you try to create a new custom role, delete any custom roles that aren't being used. Azure supports up to **5000** custom roles in a directory. (For Azure Germany and Azure China 21Vianet, the limit is 2000 custom roles.)
8484
- If you get an error similar to "The client has permission to perform action 'Microsoft.Authorization/roleDefinitions/write' on scope '/subscriptions/{subscriptionid}', however the linked subscription was not found" when you try to update a custom role, check whether one or more [assignable scopes](role-definitions.md#assignablescopes) have been deleted in the directory. If the scope was deleted, then create a support ticket as there is no self-service solution available at this time.
85+
- When you attempt to create or update a custom role, you get an error similar to "The client '<clientName>' with object id '<objectId>' has permission to perform action 'Microsoft.Authorization/roleDefinitions/write' on scope '/subscriptions/<subscriptionId>'; however, it does not have permission to perform action 'Microsoft.Authorization/roleDefinitions/write' on the linked scope(s)'/subscriptions/<subscriptionId1>,/subscriptions/<subscriptionId2>,/subscriptions/<subscriptionId3>' or the linked scope(s)are invalid". This error usually indicates that you do not have permissions to one or more of the [assignable scopes](role-definitions.md#assignablescopes) in the custom role. You can try the following:
86+
- Review [Who can create, delete, update, or view a custom role](custom-roles.md#who-can-create-delete-update-or-view-a-custom-role) and check that you have permissions to create or update the custom role for all assignable scopes.
87+
- If you don't have permissions, ask your administrator to assign you a role that has the `Microsoft.Authorization/roleDefinitions/write` action, such as [Owner](built-in-roles.md#owner) or [User Access Administrator](built-in-roles.md#user-access-administrator), at the scope of the assignable scope.
88+
- Check that all the assignable scopes in the custom role are valid. If not, remove any invalid assignable scopes.
8589
8690
## Custom roles and management groups
8791

0 commit comments

Comments
 (0)