microsoftgraph / msgraph-sdk-powershell

Powershell SDK for Microsoft Graph
https://www.powershellgallery.com/packages/Microsoft.Graph
Other
709 stars 169 forks source link

Find-MgGraphCommand: differentiate delegated vs app permissions? #1781

Closed jazuntee closed 6 months ago

jazuntee commented 1 year ago

It would be beneficial if Find-MgGraphCommand would return both Delegated Permissions and App Permissions by either: 1) Add Permission Type (Delegated vs App) property to Microsoft.Graph.PowerShell.Authentication.Models.GraphPermission Or 2) Add AppPermission property to Microsoft.Graph.PowerShell.Authentication.Models.GraphCommand with list of app permissions

image

peombwa commented 1 year ago

Thanks for following up on this.

The permissions are not categorized by type from the source. I've transferred the feature request to the DevX repo, where the permissions are fetched, for the team to support this - https://github.com/microsoftgraph/microsoft-graph-devx-api/issues/1355.

We will add PermissionType to GraphPermission model class once https://github.com/microsoftgraph/microsoft-graph-devx-api/issues/1355 is supported by the service.

andikrueger commented 1 year ago

@peombwa the referenced issue within the Devx api project got resolved. Is there anything on the SDK side happening? Would be great to have this feature within Find-MgGraphCommand.

will the command outline the various permission levels and is there a “rating” available to get the least permissive permissions for the command?