|
1 | 1 | --- |
2 | 2 | title: Can't see list of users/groups to add permissions in IAM in Azure portal |
3 | 3 | 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 |
5 | 5 | ms.service: azure-common-issues-support |
6 | | -ms.custom: has-azure-ad-ps-ref |
| 6 | +ms.custom: no-azure-ad-ps-ref |
7 | 7 | ms.author: genli |
8 | 8 | author: genlin |
9 | 9 | ms.reviewer: |
@@ -37,31 +37,13 @@ To resolve this issue, use one of the following methods: |
37 | 37 |
|
38 | 38 | ### Method 2: To allow only the one guest user or configure on a per user basis |
39 | 39 |
|
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: |
| 40 | +1. Make sure that the [Microsoft Graph PowerShell is installed](/powershell/microsoftgraph/installation). |
| 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 [Update-MgUser](/powershell/module/microsoft.graph.users/update-mguser) cmdlet: |
52 | 43 |
|
53 | 44 | ```powershell |
54 | | - Connect-AzureAD -TenantId 'Tenant_Directory_Id' |
| 45 | + Update-MgUser -UserId '0ba17ca9-0000-0000-0000-a5e34bc4803b' -UserType Member |
55 | 46 | ``` |
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: |
60 | | -
|
61 | | - ```powershell |
62 | | - Set-AzureADUser -ObjectId 'User_Object_Id' -UserType Member |
63 | | - ``` |
64 | | -
|
65 | 47 | You can get the users Object ID by looking at the Users Profile page within the Azure portal. |
66 | 48 |
|
67 | 49 | [!INCLUDE [Azure Help Support](../../includes/azure-help-support.md)] |
0 commit comments