cf create-user test-user pass1!Delete the test-user using the cf CLI:
cf delete-user test-userIn the Instructions section that follow we will find out where these events are logged.
UAA Scim Administration Events are logged under /var/vcap/sys/log/uaa/uaa_events.log on the UAA VM deployed as part of installing Tanzu Application Service for VMs.
Looks for the following events in /var/vcap/sys/log/uaa/uaa_events.log to audit user creation and/or deletion events:
Following the steps above to create and delete the test-user, we can see the events which are logged pertaining to those commands in /var/vcap/sys/log/uaa/uaa_events.log:
[2020-06-08 21:57:24.532] uaa - 15 [https-jsse-nio-8443-exec-4] .... INFO --- Audit: UserCreatedEvent ('["user_id=ec6c4622-####-#####-bea0-2a6f1645bc4f","username=test-user"]'): principal=ec6c4622-####-####-bea0-2a6f1645bc4f, origin=[client=cf, user=admin, details=(remoteAddress=10.255.200.109, tokenType=bearertokenValue=<TOKEN>, sub=2e910b05-9c55-####-####-ddea188b5454, iss=https://uaa.###.######.io/oauth/token)], identityZoneId=[uaa]
[2020-06-08 22:04:26.893] uaa - 15 [https-jsse-nio-8443-exec-8] .... INFO --- Audit: UserDeletedEvent ('["user_id=ec6c4622-####-####-####-2a6f1645bc4f","username=test-user"]'): principal=ec6c4622-fedc-437a-bea0-2a6f1645bc4f, origin=[client=cf, user=admin, details=(remoteAddress=10.255.200.109, tokenType=bearertokenValue=<TOKEN>, sub=2e910b05-####-####-####-ddea188b5454, iss=https://uaa.###.######.io/oauth/token)], identityZoneId=[uaa]