New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New command: update OAuth grant for the specified service principal #163

Closed
waldekmastykarz opened this Issue Dec 23, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@waldekmastykarz
Copy link
Member

waldekmastykarz commented Dec 23, 2017

Update OAuth grants for the specified service principal

  • command: aad oauthgrant set -i|--grantId <grantId> -s|--scope <scope>
  • grantId: ID of the grant to update
  • scope: updated permissions scope to set on the specified grant
  • requires connection to AAD Graph

The operation can be executed using the following REST call:

PATCH https://graph.windows.net/myorganization/oauth2PermissionGrants/<grantId>?api-version=1.6
content-type: application/json
authorization: Bearer eyJ0eXAiOiJKV1Qi...

{
    "scope": "<scope>"
}

Requires #160 to be done first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment