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: get OAuth grants for the specified service principal #159

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

Get OAuth grants for the specified service principal

  • command: aad oauthgrant list -i|--clientId <clientId>
  • clientId: ID of the client for which OAuth grants should be retrieved
  • requires connection to AAD Graph

The information can be get from the following REST call:

GET https://graph.windows.net/myorganization/oauth2PermissionGrants?api-version=1.6&$filter=clientId eq '<clientId>'
authorization: Bearer eyJ0eXAiOiJKV1QiLCJh...

Requires #160 to be done first

@waldekmastykarz waldekmastykarz changed the title New command: get OAuth grants for the service principal New command: get OAuth grants for the specified service principal Dec 23, 2017

@waldekmastykarz waldekmastykarz self-assigned this Dec 24, 2017

waldekmastykarz added a commit to waldekmastykarz/office365-cli that referenced this issue Dec 24, 2017

@waldekmastykarz waldekmastykarz added this to the v0.4.0 milestone Dec 26, 2017

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