msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

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

Open o-l-a-v opened this issue 1 year ago • 1 comments

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.

  • https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/587

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

o-l-a-v avatar Jan 09 '24 11:01 o-l-a-v

Good idea!

12Knocksinna avatar Jan 11 '24 15:01 12Knocksinna