msgraph-sdk-powershell
msgraph-sdk-powershell copied to clipboard
Commands should request permissions based on scopes in decorated metadata
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.
Solution to #2008 will probably address this one too.
@adamedx, we don't automatically request for permissions, but there's a Find-MgGraphCommand
cmdlet that shows you what permissions a command needs.
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.