microsoftgraph / microsoftgraph/msgraph-sdk-powershell
Find-MgGraphCommand doesn't return the Permissions property value
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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