Get-MsIdInactiveSignInUser fails to "Find-MgGraphCommand: 'Get-MgUser'"
Describe the bug
When Running the command "Get-MsIdInactiveSignInUser -LastSignInBeforeDaysAgo 60 -UserType Guest the function can't find the Get-MgUser command.
To Reproduce
I have installed the latest version (2.0.52) of MsIdentityTools and Microsoft.Graph.Users version 2.12.0 get-command get-MgUser
CommandType Name Version Source
Function Get-MgUser 2.12.0 Microsoft.Graph.Users
Steps to reproduce: Run connect-MgGraph -Scopes "Application.Read.all","Directory.Read.All","User.Read.All"copes. Run Get-MsIdInactiveSignInUser -LastSignInBeforeDaysAgo 60 -UserType Guest
Expected behavior
Output of Inactive Guest Users
Screenshots
Environment (please complete the following information)
- Operating System: Windows 11
- PowerShell Version: PowerShell 7.3.11 ]
- MS Graph PowerShell SDK Module Version: 2.12.0
Same here, i tracked down the issue and created a Pull Request https://github.com/AzureAD/MSIdentityTools/pull/40
By the way the way, the Error: "is not a valid Microsoft Graph PowerShell command" happens at multiple commands
- Get-MsIdGroupWithExpiration
- Get-MsIdInactiveSignInUser -LastSignInBeforeDaysAgo 30
@merill Can you please review the Pull Request?
Regards Andres
Also Bugreport has been created in MSGraph-SDK-PowerShell to solve the root issue https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/2582
This Issue has been fixed with Version 2.0.57. Issue can be closed now
Thank you Andres, I will check it out
From: Andres Bohren @.> Sent: Sunday, May 26, 2024 3:31 PM To: AzureAD/MSIdentityTools @.> Cc: Matthew Levy @.>; Author @.> Subject: Re: [AzureAD/MSIdentityTools] Get-MsIdInactiveSignInUser fails to "Find-MgGraphCommand: 'Get-MgUser'" (Issue #47)
This Issue has been fixed with Version 2.0.57. Issue can be closed now
— Reply to this email directly, view it on GitHubhttps://github.com/AzureAD/MSIdentityTools/issues/47#issuecomment-2132225511, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGVS2T4W4YB43TGLGN5WW4LZEHP4FAVCNFSM6AAAAABC4I5BV2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZSGIZDKNJRGE. You are receiving this because you authored the thread.Message ID: @.***>