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

[Critical] - Microsoft.Graph.Users.Functions missing many functions

Open gavinbarron opened this issue 11 months ago • 2 comments

Describe the bug

Can't use Get-MgAllUserOnlineMeetingRecording with v2.26.1 Docs here: https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.users.functions/?view=graph-powershell-1.0 say that there are a lot more functions in the library than are reported from the module

PowerShell 7.5.0
Loading personal and system profiles took 2151ms.
 gavinbarron > Import-Module Microsoft.Graph.Users.Functions -RequiredVersion 2.26.1
 gavinbarron >  Get-Command -Module  Microsoft.Graph.Users.Functions -CommandType Function

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Function        Export-MgUserDeviceAndAppManagementData            2.26.1     Microsoft.Graph.Users.Functions
Function        Get-MgUserDelta                                    2.26.1     Microsoft.Graph.Users.Functions
Function        Get-MgUserManagedAppDiagnosticStatus               2.26.1     Microsoft.Graph.Users.Functions
Function        Get-MgUserManagedAppPolicy                         2.26.1     Microsoft.Graph.Users.Functions
Function        Get-MgUserManagedDeviceWithAppFailure              2.26.1     Microsoft.Graph.Users.Functions
Function        Invoke-MgViewUserReminder                          2.26.1     Microsoft.Graph.Users.Functions

Expected behavior

 gavinbarron >  Import-Module Microsoft.Graph.Users.Functions -RequiredVersion 2.25.0
 gavinbarron >  Get-Command -Module  Microsoft.Graph.Users.Functions -CommandType Function

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Function        Export-MgUserDeviceAndAppManagementData            2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgAllUserChatMessage                           2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgAllUserOnlineMeetingRecording                2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgAllUserOnlineMeetingTranscript               2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserCalendarEventDelta                       2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserChatMessageDelta                         2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserChatMessageReplyDelta                    2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserChatRetainedMessage                      2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserContactDelta                             2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserContactFolderChildFolderContactDelta     2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserContactFolderChildFolderDelta            2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserContactFolderContactDelta                2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserContactFolderDelta                       2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserDelta                                    2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserDriveItemActivityByInterval              2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserDriveItemDelta                           2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserDriveItemListItemActivityByInterval      2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserDriveListContentTypeCompatibleHubConten… 2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserDriveListItemActivityByInterval          2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserDriveListItemDelta                       2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserDriveRootActivityByInterval              2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserDriveRootDelta                           2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserDriveRootListItemActivityByInterval      2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserEventDelta                               2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserEventInstanceDelta                       2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserLicenseDetailTeamLicensingDetail         2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserMailFolderChildFolderDelta               2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserMailFolderChildFolderMessageDelta        2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserMailFolderDelta                          2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserMailFolderMessageDelta                   2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserManagedAppDiagnosticStatus               2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserManagedAppPolicy                         2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserManagedDeviceWithAppFailure              2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserMessageDelta                             2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserOnenoteRecentNotebook                    2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserOnlineMeetingRecordingDelta              2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserOnlineMeetingTranscriptDelta             2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserOnlineMeetingVirtualAppointmentJoinWebU… 2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserTodoListDelta                            2.25.0     Microsoft.Graph.Users.Functions
Function        Get-MgUserTodoTaskDelta                            2.25.0     Microsoft.Graph.Users.Functions
Function        Invoke-MgCalendarUserCalendarAllowedCalendarShari… 2.25.0     Microsoft.Graph.Users.Functions
Function        Invoke-MgGraphUserDrive                            2.25.0     Microsoft.Graph.Users.Functions
Function        Invoke-MgPreviewUserOnenotePage                    2.25.0     Microsoft.Graph.Users.Functions
Function        Invoke-MgRecentUserActivity                        2.25.0     Microsoft.Graph.Users.Functions
Function        Invoke-MgRecentUserDrive                           2.25.0     Microsoft.Graph.Users.Functions
Function        Invoke-MgSupportedUserOutlookLanguage              2.25.0     Microsoft.Graph.Users.Functions
Function        Invoke-MgTimeUserOutlook                           2.25.0     Microsoft.Graph.Users.Functions
Function        Invoke-MgViewUserReminder                          2.25.0     Microsoft.Graph.Users.Functions
Function        Search-MgUserDrive                                 2.25.0     Microsoft.Graph.Users.Functions
Function        Search-MgUserDriveItem                             2.25.0     Microsoft.Graph.Users.Functions
Function        Search-MgUserDriveRoot                             2.25.0     Microsoft.Graph.Users.Functions
Function        Test-MgUserDriveListContentTypePublished           2.25.0     Microsoft.Graph.Users.Functions

How to reproduce

Refer above

SDK Version

2.26.1

Latest version known to work for scenario above?

2.25.0

Known Workarounds

downgrade to v2.25.0

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

gavinbarron avatar Mar 25 '25 20:03 gavinbarron

Hi @gavinbarron I checked, and most cmdlets now exist under different modules. The module mapping is based on the tags gotten from the metadata. We are also working to update the docs

Type Name Version Module
Function Export-MgUserDeviceAndAppManagementData 2.26.1 Microsoft.Graph.Users.Functions
Function Get-MgAllUserChatMessage 2.26.1 Microsoft.Graph.Teams
Function Get-MgUserChatMessageDelta 2.26.1 Microsoft.Graph.Teams
Function Get-MgUserChatMessageReplyDelta 2.26.1 Microsoft.Graph.Teams
Function Get-MgUserChatRetainedMessage 2.26.1 Microsoft.Graph.Teams
Function Get-MgUserContactDelta 2.26.1 Microsoft.Graph.PersonalContacts
Function Get-MgUserContactFolderChildFolderContactDelta 2.26.1 Microsoft.Graph.PersonalContacts
Function Get-MgUserContactFolderChildFolderDelta 2.26.1 Microsoft.Graph.PersonalContacts
Function Get-MgUserContactFolderContactDelta 2.26.1 Microsoft.Graph.PersonalContacts
Function Get-MgUserContactFolderDelta 2.26.1 Microsoft.Graph.PersonalContacts
Function Get-MgUserDelta 2.26.1 Microsoft.Graph.Users.Functions
Function Get-MgUserDriveItemActivityByInterval 2.26.1 Microsoft.Graph.Files
Function Get-MgUserDriveItemDelta 2.26.1 Microsoft.Graph.Files
Function Get-MgUserDriveItemListItemActivityByInterval 2.26.1 Microsoft.Graph.Files
Function Get-MgUserDriveListItemActivityByInterval 2.26.1 Microsoft.Graph.Files
Function Get-MgUserDriveListItemDelta 2.26.1 Microsoft.Graph.Files
Function Get-MgUserDriveRootActivityByInterval 2.26.1 Microsoft.Graph.Files
Function Get-MgUserDriveRootDelta 2.26.1 Microsoft.Graph.Files
Function Get-MgUserDriveRootListItemActivityByInterval 2.26.1 Microsoft.Graph.Files
Function Get-MgUserEventDelta 2.26.1 Microsoft.Graph.Calendar
Function Get-MgUserEventInstanceDelta 2.26.1 Microsoft.Graph.Calendar
Function Get-MgUserLicenseDetailTeamLicensingDetail 2.26.1 Microsoft.Graph.Users
Function Get-MgUserMailFolderChildFolderDelta 2.26.1 Microsoft.Graph.Mail
Function Get-MgUserMailFolderChildFolderMessageDelta 2.26.1 Microsoft.Graph.Mail
Function Get-MgUserMailFolderDelta 2.26.1 Microsoft.Graph.Mail
Function Get-MgUserMailFolderMessageDelta 2.26.1 Microsoft.Graph.Mail
Function Get-MgUserManagedAppDiagnosticStatus 2.26.1 Microsoft.Graph.Users.Functions
Function Get-MgUserManagedAppPolicy 2.26.1 Microsoft.Graph.Users.Functions
Function Get-MgUserManagedDeviceWithAppFailure 2.26.1 Microsoft.Graph.Users.Functions
Function Get-MgUserMessageDelta 2.26.1 Microsoft.Graph.Mail
Alias Get-MgUserOnenoteRecentNotebook 2.26.1 Microsoft.Graph.Notes
Function Get-MgUserOnlineMeetingRecordingDelta 2.26.1 Microsoft.Graph.CloudCommunications
Function Get-MgUserOnlineMeetingTranscriptDelta 2.26.1 Microsoft.Graph.CloudCommunications
Function Get-MgUserTodoListDelta 2.26.1 Microsoft.Graph.Users
Function Get-MgUserTodoTaskDelta 2.26.1 Microsoft.Graph.Users
Function Invoke-MgGraphUserDrive 2.26.1 Microsoft.Graph.Files
Function Invoke-MgPreviewUserOnenotePage 2.26.1 Microsoft.Graph.Notes
Function Invoke-MgRecentUserActivity 2.26.1 Microsoft.Graph.CrossDeviceExperiences
Function Invoke-MgRecentUserDrive 2.26.1 Microsoft.Graph.Files
Function Invoke-MgSupportedUserOutlookLanguage 2.26.1 Microsoft.Graph.Users
Function Invoke-MgTimeUserOutlook 2.26.1 Microsoft.Graph.Users
Function Invoke-MgViewUserReminder 2.26.1 Microsoft.Graph.Users.Functions
Function Search-MgUserDrive 2.26.1 Microsoft.Graph.Files
Function Search-MgUserDriveItem 2.26.1 Microsoft.Graph.Files
Function Search-MgUserDriveRoot 2.26.1 Microsoft.Graph.Files
Function Test-MgUserDriveListContentTypePublished 2.26.1 Microsoft.Graph.Files

timayabi2020 avatar Mar 26 '25 06:03 timayabi2020

Ok, in that case we have 2 things here.

  1. A breaking change to Microsoft.Graph.Users.Functions as a minor version. A user of Microsoft.Graph.Users.Functions should be able to expect that the set of cmdlets are available in a previous minor version exist in a subsequent minor version.

  2. we shipped a huge reorganization of where to get specific cmdlets without updating the docs.

gavinbarron avatar Mar 26 '25 16:03 gavinbarron