Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
robinmalik opened this issue Jul 18, 2023 · 3 comments

Comments

@robinmalik
Copy link

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
@ghost ghost added the ToTriage label Jul 18, 2023
@SeniorConsulting
Copy link

SeniorConsulting commented Jul 18, 2023

Looks to be the same in PowerShell 5.1

image

It sounds like you're stuck on permissioning, so this might help you get going while the devs investigate further:
https://learn.microsoft.com/en-us/graph/api/calendar-get?view=graph-rest-1.0&tabs=http#permissions

@peombwa
Copy link
Member

peombwa commented Jul 25, 2023

Thanks for bringing this to our attention.

The permissions for /groups/{group-id}/* are missing at the source. The same behavior can be seen in tools like Graph Explorer:
image

Please use the API reference as suggested above as the team investigates the issue at microsoftgraph/microsoft-graph-devx-content#361.

Closing as duplicate of microsoftgraph/microsoft-graph-devx-content#361.

@peombwa peombwa closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2023
@ghost ghost removed the ToTriage label Jul 25, 2023
@ChrisPChikn
Copy link

Hate to re-awaken, but this exact behaviour is also occurring for Get-MgServicePrincipalMemberOfAsGroup.
I have found the permissions in the meanwhile through a links shared here for the API permissions.

permissions for Get-MgServicePrincipalMemberOfAsGroup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants