Skip to content

Permissions not returned for Find-MgGraphCommand -command Get-MgGroupCalendar (or beta) #2171

@robinmalik

Description

@robinmalik

Describe the bug

No permissions returned via Find-MgGraphCommand, so I'm unable to connect with the correct scopes to use the cmdlet.

To Reproduce
Steps to reproduce the behavior:
Find-MgGraphCommand -command Get-MgGroupCalendar | Select -ExpandProperty Permissions

Expected behavior

The required scopes are returned

Debug Output

   APIVersion: v1.0

Command             Module   Method URI                         OutputType              Permissions Variants           
-------             ------   ------ ---                         ----------              ----------- --------           
Get-MgGroupCalendar Calendar GET    /groups/{group-id}/calendar IMicrosoftGraphCalendar {}          {Get, GetViaIden...


   APIVersion: beta

Command                 Module        Method URI                         OutputType              Permissions Variants  
-------                 ------        ------ ---                         ----------              ----------- --------  
Get-MgBetaGroupCalendar Beta.Calendar GET    /groups/{group-id}/calendar IMicrosoftGraphCalendar {}          {Get, G...

Module Version

ModuleType Version Name                            
---------- ------- ----                            
    Script 2.1.0   Microsoft.Graph.Applications    
    Script 2.1.0   Microsoft.Graph.Authentication  
    Script 2.1.0   Microsoft.Graph.Bookings        
    Script 2.1.0   Microsoft.Graph.Calendar        
    Script 2.1.0   Microsoft.Graph.Groups          
    Script 2.1.0   Microsoft.Graph.Identity.SignIns
    Script 2.1.0   Microsoft.Graph.Mail            
    Script 2.1.0   Microsoft.Graph.Sites           
    Script 2.1.0   Microsoft.Graph.Teams           
    Script 2.1.0   Microsoft.Graph.Users           

Environment Data

Name                           Value                                                                                   
----                           -----                                                                                   
PSVersion                      5.1.22621.1830                                                                          
PSEdition                      Desktop                                                                                 
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                 
BuildVersion                   10.0.22621.1830                                                                         
CLRVersion                     4.0.30319.42000                                                                         
WSManStackVersion              3.0                                                                                     
PSRemotingProtocolVersion      2.3                                                                                     
SerializationVersion           1.1.0.1                                                                                 

and

Name                           Value
----                           -----
PSVersion                      7.3.6
PSEdition                      Core
GitCommitId                    7.3.6
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions