Skip to content

Commit 43748fb

Browse files
Merge pull request #97023 from rolyon/rolyon-rbac-unknown-ui
[Azure RBAC] Unknown security principal in portal
2 parents 5bce932 + 0b1c155 commit 43748fb

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed
62 KB
Loading

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.workload: identity
1212
ms.tgt_pltfrm: na
1313
ms.devlang: na
1414
ms.topic: conceptual
15-
ms.date: 08/22/2019
15+
ms.date: 11/22/2019
1616
ms.author: rolyon
1717
ms.reviewer: bagovind
1818
ms.custom: seohack1
@@ -51,7 +51,11 @@ This article answers common questions about role-based access control (RBAC) for
5151

5252
## Role assignments with Unknown security principal
5353

54-
When you list your role assignments using Azure PowerShell, you might see assignments with an empty `DisplayName` and an `ObjectType` set to Unknown. For example, [Get-AzRoleAssignment](/powershell/module/az.resources/get-azroleassignment) returns a role assignment that is similar to the following:
54+
If you assign a role to a security principal (user, group, service principal, or managed identity) and then you later delete that security principal without removing the role assignment, the security principal type for the role assignment will be listed as **Unknown**. The following screenshot shows an example in the Azure portal. The security principal name is listed as **Identity deleted** and **Identity no longer exists**.
55+
56+
![Web app resource group](./media/troubleshooting/unknown-security-principal.png)
57+
58+
If you list this role assignment using Azure PowerShell, you will see an empty `DisplayName` and an `ObjectType` set to Unknown. For example, [Get-AzRoleAssignment](/powershell/module/az.resources/get-azroleassignment) returns a role assignment that is similar to the following:
5559

5660
```azurepowershell
5761
RoleAssignmentId : /subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Authorization/roleAssignments/22222222-2222-2222-2222-222222222222
@@ -65,7 +69,7 @@ ObjectType : Unknown
6569
CanDelegate : False
6670
```
6771

68-
Similarly, when you list your role assignments using Azure CLI, you might see assignments with an empty `principalName`. For example, [az role assignment list](/cli/azure/role/assignment#az-role-assignment-list) returns a role assignment that is similar to the following:
72+
Similarly, if you list this role assignment using Azure CLI, you will see an empty `principalName`. For example, [az role assignment list](/cli/azure/role/assignment#az-role-assignment-list) returns a role assignment that is similar to the following:
6973

7074
```azurecli
7175
{
@@ -81,9 +85,7 @@ Similarly, when you list your role assignments using Azure CLI, you might see as
8185
}
8286
```
8387

84-
These role assignments occur when you assign a role to a security principal (user, group, service principal, or managed identity) and you later delete that security principal. These role assignments aren't displayed in the Azure portal and it isn't a problem to leave them. However, if you like, you can remove these roles assignments.
85-
86-
To remove these role assignments, use the [Remove-AzRoleAssignment](/powershell/module/az.resources/remove-azroleassignment) or [az role assignment delete](/cli/azure/role/assignment#az-role-assignment-delete) commands.
88+
It isn't a problem to leave these role assignments, but you can remove them using steps that are similar to other role assignments. For information about how to remove role assignments, see [Azure portal](role-assignments-portal.md#remove-role-assignments), [Azure PowerShell](role-assignments-powershell.md#remove-access), or [Azure CLI](role-assignments-cli.md#remove-access)
8789

8890
In PowerShell, if you try to remove the role assignments using the object ID and role definition name, and more than one role assignment matches your parameters, you will get the error message: "The provided information does not map to a role assignment". The following shows an example of the error message:
8991

0 commit comments

Comments
 (0)