microsoftgraph / microsoftgraph/msgraph-sdk-powershell

Find-MgGraphCommand doesn't return the Permissions property value

Open
#2,872 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Blocked type:bug
Dominant language
C#
Stars
898
Forks
230
Avg merge
2d 5h
Merged PRs (30d)
31

Description

Describe the bug

Find-MgGraphCommand doesn't return the Permissions property value for a lot of Microsoft Graph commands.

Expected behavior

The Permissions property is populated with delegated/application permissions.

How to reproduce
Get-Command -Module microsoft.graph.* | where { $null -eq (Find-MgGraphCommand -Command $_.name -ea SilentlyContinue).Permissions}
SDK Version

2.20.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output
Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the provided PowerShell reproduction with Find-MgGraphCommand against the Microsoft Graph modules and inspect how the command metadata exposes Permissions. Done means the Permissions property is populated with delegated and application permissions for commands that currently return null.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
api, authorization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.