Users not completely being deleted upon using the UAAC command line to delete said user. When you delete via the UAAC command line tool, it appears to leave a "ghost" user; meaning that upon deletion, if you check apps manager, the "deleted" user still remains with the user identifier changing from the actual user's name to the user's GUID.
Steps to Reproduce:
Create test user 'test1'
cf create-user test1 testing12345
Add OrgManager and SpaceManager roles to user 'test1'
cf set-org-role test1 system OrgManager
cf set-space-role test1 system system SpaceManager
cf curl -X GET '/v3/users' | jq .
You can also see that this user has been created in Apps Manager as well:
The $SYSTEM_DOMAIN can be found by going to TAS Tile > Domains > System Domain
Plug in the system domain found from TAS tile in place of the $SYSTEM_DOMAIN variable below:
uaac target uaa.$SYSTEM_DOMAIN --skip-ssl-validation
uaac token client get admin -s $CF_UAA_TOKEN
uaac context
uaac users | grep "test1"
# Example with --start and --count flags
uaac users --start 1 --count 20 | grep "test1"
uaac user delete test1 --origin uaa
To delete these "ghost" users, use the command below:
cf curl -X DELETE '/v3/users/$USER_ID'
cf curl -X DELETE '/v3/users/####################'