microsoftgraph / microsoftgraph/msgraph-sdk-powershell
`Connect-MgGraph` without previously consented scopes / specified scopes only
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 898
- Forks
- 230
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 31
Description
Is your feature request related to a problem? Please describe.
I just learned about the footgun that all previously consented scopes will be present when Connect-MgGraph.
Describe the solution you'd like
I'd like the ability to Connect-MgGraph with specific scopes/permissions only, without other previously consented scopes.
- Add a switch
-SpecifiedScopesOnlyor similar?
Describe alternatives you've considered
- Remove previously consented scopes, but I don't consider that a viable option.
Additional context
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 at the Connect-MgGraph entry point and trace how requested scopes are combined with previously consented scopes. Define the behavior for a specified-scopes-only option, then verify that a connection requests only the supplied scopes without inheriting other consented permissions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- authentication, authorization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100