Skip to content

Commit ff9d5ba

Browse files
authored
Update cannot-see-users-groups-list-iam.md
1 parent bb72f85 commit ff9d5ba

1 file changed

Lines changed: 6 additions & 23 deletions

File tree

support/azure/general/cannot-see-users-groups-list-iam.md

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: Can't see list of users/groups to add permissions in IAM in Azure portal
33
description: Resolves an issue in which you can't see list of users or groups when adding permissions in Access Control (IAM) in the Azure portal.
4-
ms.date: 08/14/2020
4+
ms.date: 06/05/2025
55
ms.service: azure-common-issues-support
6-
ms.custom: has-azure-ad-ps-ref
6+
ms.custom: no-azure-ad-ps-ref
77
ms.author: genli
88
author: genlin
99
ms.reviewer:
@@ -37,29 +37,12 @@ To resolve this issue, use one of the following methods:
3737

3838
### Method 2: To allow only the one guest user or configure on a per user basis
3939

40-
[!INCLUDE [Azure AD PowerShell deprecation note](~/../support/reusable-content/msgraph-powershell/includes/aad-powershell-deprecation-note.md)]
41-
42-
1. Open Windows PowerShell.
43-
2. Run the following cmdlet:
44-
45-
```powershell
46-
Import-Module AzureAd
47-
```
48-
49-
Make sure that the Azure Active Directory PowerShell for Graph is installed. For more information, see [Azure Active Directory PowerShell for Graph](/powershell/azure/active-directory/install-adv2?view=azureadps-2.0&preserve-view=true).
50-
51-
3. As a global administrator of the directory where the guest user was added, connect to Azure AD PowerShell and the directory:
52-
53-
```powershell
54-
Connect-AzureAD -TenantId 'Tenant_Directory_Id'
55-
```
56-
57-
You can get the Tennat ID by looking at your Microsoft Entra ID Properties in the Azure portal.
58-
59-
4. Run the following cmdlet:
40+
1. Make sure that [Microsoft Graph Powershell](/powershell/microsoftgraph/installation) is installed.
41+
1. Use the `Connect-MgGraph` command to sign in with the required scopes. For more information, see [Get started with the Microsoft Graph PowerShell SDK](/powershell/microsoftgraph/get-started)
42+
1. Run the following cmdlet:
6043

6144
```powershell
62-
Set-AzureADUser -ObjectId 'User_Object_Id' -UserType Member
45+
Update-MgUser -UserId '2a1fa0b8-0000-0000-0000-68d0db617b02' -UserType Member
6346
```
6447
6548
You can get the users Object ID by looking at the Users Profile page within the Azure portal.

0 commit comments

Comments
 (0)