

# Configuring the service principal name
<a name="ad-spn"></a>

Learn how to configure the service principal name for the connector.

------
#### [ Console ]

 **To manage manage service principal names using the console** 

The service principal name (SPN) of an existing AD connector can be managed from the details page of the connector. For more information, see Managing directory registration [View connector details](view-connector-for-ad.html) 

------
#### [ API ]

 **To manage service principal names using the API** 

**Create**: [ CreateServicePrincipalName](https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateServicePrincipalName.html) action in the AWS Private CA Connector for Active Directory API.

**Retrieve**: [ GetServicePrincipalName](https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_GetServicePrincipalName.html) action in the AWS Private CA Connector for Active Directory API.

**List**: [ ListServicePrincipalNames](https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_ListServicePrincipalNames.html) action in the AWS Private CA Connector for Active Directory API.

**Delete**: [ DeleteServicePrincipalName](https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_DeleteServicePrincipalName.html) action in the AWS Private CA Connector for Active Directory API.

------
#### [ CLI ]

 **To manage service principal names using the CLI** 

**Create**: [ create-service-principal-name](https://docs.aws.amazon.com/cli/latest/reference/pca-connector-ad/create-service-principal-name.html) command in the AWS Private CA Connector for Active Directory section of the AWS CLI.

**Retrieve**: [ get-service-principal-name](https://docs.aws.amazon.com/cli/latest/reference/pca-connector-ad/get-service-principal-name.html) command in the AWS Private CA Connector for Active Directory section of the AWS CLI.

**List**: [ list-service-principal-names](https://docs.aws.amazon.com/cli/latest/reference/pca-connector-ad/list-service-principal-names.html) command in the AWS Private CA Connector for Active Directory section of the AWS CLI.

**Delete**: [ delete-service-principal-name](https://docs.aws.amazon.com/cli/latest/reference/pca-connector-ad/delete-service-principal-name.html) command in the AWS Private CA Connector for Active Directory section of the AWS CLI.

------