msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

Unable to get Get-MgUser from Powershell 7.2 version however I am able to connect Connect-MgGraph -ClientId "xxxxxxxxx" -TenantId "xxxxxxxx" -CertificateThumbprint "xxxxx". Is this not support

Open fcbtdoorga opened this issue 2 years ago • 2 comments

Get-MgUser -Top 10 -Property Id, DisplayName, BusinessPhones, companyName | Format-Table Id, DisplayName, BusinessPhones, companyName Get-MgUser: The 'Get-MgUser' command was found in the module 'Microsoft.Graph.Users', but the module could not be loaded due to the following error: [Assembly with same name is already loaded] For more information, run 'Import-Module Microsoft.Graph.Users'.

this error appear in the PowerShell 7.4 (latest version) but it's working fine in PowerShell ISE. so the question does Graph API does not support Power shell latest version?

fcbtdoorga avatar Dec 22 '23 21:12 fcbtdoorga

Hi @fcbtdoorga please confirm if you have Az.Accounts module installed by running Get-module az.accounts -ListAvailable

timayabi2020 avatar Jan 08 '24 20:01 timayabi2020

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.