---
title: "GET /{tenantID}/servicePrincipals"
method: GET
path: "/{tenantID}/servicePrincipals"
tags: ["ServicePrincipal"]
---

# GET /{tenantID}/servicePrincipals

`GET /{tenantID}/servicePrincipals`

Gets a list of service principals from the current tenant.

## Path parameters

- `tenantID` string, required

## Query parameters

- `$filter` string
- `api-version` string, required

## Response `200`

OK. The operation was successful.

- ServicePrincipalListResult — Server response for get tenant service principals API call.
  - `value` ServicePrincipal[] — the list of service principals.
    - `objectId` string — The object ID.
    - `objectType` string, required — The object type.
    - `deletionTimestamp` string, date-time, nullable — The time at which the directory object was deleted.
  - `odata.nextLink` string — the URL to get the next set of results.

## Other responses

- `default` — Error response describing why the operation failed.

---

[API](https://skmtc.net/azure/apis/graphrbacmanagementclient.md) · [All operations](https://skmtc.net/azure/apis/graphrbacmanagementclient/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/graphrbacmanagementclient/revisions/71d95005600e/schema)
