ServicePrincipal

GET /{tenantID}/servicePrincipals/{objectId}

Gets service principal information from the directory. Query by objectId or pass a filter to query by appId

Request

  • Base URL
    https://graph.windows.net
  • Auth
    OAuth 2
    Implicithttps://login.microsoftonline.com/common/oauth2/authorize
    Scopesuser_impersonation

Path parameters

objectIdstring required

The object ID of the service principal to get.

tenantIDstring required

The tenant ID.

Query parameters

api-versionstring required

Client API version.

Response

OK. The operation was successful.

objectIdstring

The object ID.

objectTypestring required

The object type.

deletionTimestampstring date-time nullable

The time at which the directory object was deleted.

Changes

No recorded changes to this operation across all 17 revisions of this API.