msgraph-sdk-powershell
msgraph-sdk-powershell copied to clipboard
`Connect-MgGraph` without previously consented scopes / specified scopes only
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
Good idea!