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

Commands should request permissions based on scopes in decorated metadata

Open adamedx opened this issue 4 years ago • 2 comments

Currently, users must know the permissions required for every command. Currently there are 497 (and counting!) permissions to choose from, so clearly this is an unreasonable expectation.

To address this, a solution like the following could be implemented:

  • The openapi specs in this repo should support the ability to decorate the API and thus the associated commands with the most likely required permission.
    • This decoration could be manual or (even better) automated based on authoritative sources
  • The generated command could then request this permission at runtime so that users would not have to do research.

AB#8191

adamedx avatar Feb 18 '21 02:02 adamedx

Solution to #2008 will probably address this one too.

timayabi2020 avatar Dec 21 '23 08:12 timayabi2020

@adamedx, we don't automatically request for permissions, but there's a Find-MgGraphCommand cmdlet that shows you what permissions a command needs.

calebkiage avatar Feb 29 '24 13:02 calebkiage

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.