---
title: "GET /directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames"
method: GET
path: "/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames"
---

# GET /directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames

`GET /directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames`

Lists the service principal names that the connector uses to authenticate with Active Directory.

## Path parameters

- `DirectoryRegistrationArn` string, required

## Query parameters

- `MaxResults` integer
- `NextToken` string

## Response `200`

Success

- ListServicePrincipalNamesResponse
  - `NextToken` string — Use this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the <code>NextToken</code> parameter from the response you just received.
  - `ServicePrincipalNames` ServicePrincipalNameSummary[] — The service principal name, if any, that the connector uses to authenticate with Active Directory.
    - `ConnectorArn` string — The Amazon Resource Name (ARN) that was returned when you called <a href="https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateConnector.html">CreateConnector</a>.
    - `CreatedAt` string, date-time — The date and time that the service principal name was created.
    - `DirectoryRegistrationArn` string — The Amazon Resource Name (ARN) that was returned when you called <a href="https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateDirectoryRegistration.html">CreateDirectoryRegistration</a>.
    - `Status` 'CREATING' | 'ACTIVE' | 'DELETING' | 'FAILED' — The status of a service principal name.
    - `StatusReason` 'DIRECTORY_ACCESS_DENIED' | 'DIRECTORY_NOT_REACHABLE' | 'DIRECTORY_RESOURCE_NOT_FOUND' | 'SPN_EXISTS_ON_DIFFERENT_AD_OBJECT' | 'SPN_LIMIT_EXCEEDED' | 'INTERNAL_FAILURE' — Additional information for the status of a service principal name if the status is failed.
    - `UpdatedAt` string, date-time — Time when the service principal name was updated.

## Other responses

- `480` — AccessDeniedException
- `481` — ValidationException
- `482` — ResourceNotFoundException
- `483` — ThrottlingException
- `484` — InternalServerException

---

[API](https://skmtc.net/aws/apis/pca-connector-ad.md) · [All operations](https://skmtc.net/aws/apis/pca-connector-ad/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/pca-connector-ad/versions/ab51ba01ae5f/schema)
