Skip to content

New command: get AAD service principal #158

Description

@waldekmastykarz

Get AAD service principal

  • command: aad sp get -i|--appId [appId] -n|--displayName [displayName]
  • appId: ID of the application for which the service principal should be retrieved
  • displayName: display name of the application for which the service principal should be retrieved
  • either appId or displayName must be specified but not both
  • requires connection to AAD Graph

The information can be get from the following REST call:

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

Requires #160 to be done first

Activity

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions