Stale username in SDDC Password Management
search cancel

Stale username in SDDC Password Management

book

Article ID: 406670

calendar_today

Updated On:

Products

VMware SDDC Manager

Issue/Introduction

A stale username was shown in SDDC Password Management.

Confirmed this account is abandoned

Environment

SDDC 5.X

Resolution

1. Double confirm this username isabandoned 

2. Take SDDC snapshot

3. Use the API to clear 

1. Obtain Token
ACCESS_TOKEN=$(curl -vd '{"username" : "[email protected]", "password" : "<SSO_PW>"}' -H "Content-Type: application/json" -X POST https://<SDDC_IP>/v1/tokens -k| jq -r '.accessToken')
2. Obtain the credential ID
curl localhost/v1/system/credentials/service -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" | jq 
3. Delete the credential
curl localhost/v1/system/credentials/<Id> -X DELETE  -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" | jq