microsoftgraph / microsoftgraph/msgraph-sdk-powershell

`Connect-MgGraph` without previously consented scopes / specified scopes only

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

Nobody has claimed this yet.

priority:p1 Request: Feature
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 -SpecifiedScopesOnly or similar?

Describe alternatives you've considered

  • Remove previously consented scopes, but I don't consider that a viable option.

Additional context

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.