Finding VMware vCenter Server user accounts that were recently removed or added
search cancel

Finding VMware vCenter Server user accounts that were recently removed or added

book

Article ID: 302641

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

This article provides steps to find user accounts that were deleted from or added to vCenter Server.

Environment

VMware vCenter Server Appliance 5.0.x
VMware vCenter Server 5.0.x
VMware vCenter Server 5.1.x
VMware vCenter Server 4.1.x
VMware vCenter Server Appliance 5.1.x
VMware vCenter Server 4.0.x
VMware vCenter Server 5.5.x

Resolution

To find the user accounts that were added or deleted to vCenter Server, check the event information in the vCenter Server database.
To find the user accounts that were added or deleted:
  1. Log in to vCenter Server database:

    • Microsoft SQL Server

      1. Connect to VCDB via SQL Server Management Studio.
      2. Click New Query.

    • Oracle

      1. Connect to VCDB via SQL*Plus. Alternatively, start SQL Developer.
      2. Right-click VCDB connection and click Open SQL Worksheet.

    • vPostgres
    1. Connect to the VMware vCenter Server Appliance console.
    2. Connect to the vPostgres VCDB and run this command:

      sudo /opt/vmware/vpostgres/1.0/bin/psql -d VCDB vc
  2. To find user accounts that were deleted from vCenter Server, run this SQL statement:

    select E.EVENT_ID,CREATE_TIME as "UTC TIMESTAMP",USERNAME,ARG_DATA as REMOVED,EVENT_TYPE
    from VPX_EVENT E,VPX_EVENT_ARG A
    where E.EVENT_ID = A.EVENT_ID and EVENT_TYPE = 'vim.event.PermissionRemovedEvent'
    and ARG_DATA not like '%XML%'

  3. To find user accounts that were added to vCenter Server, run this SQL statement:

    select E.EVENT_ID,CREATE_TIME as "UTC TIMESTAMP",USERNAME,ARG_DATA as ADDED,EVENT_TYPE
    from VPX_EVENT E,VPX_EVENT_ARG A
    where E.EVENT_ID = A.EVENT_ID and EVENT_TYPE = 'vim.event.PermissionAddedEvent'
    and ARG_DATA not like '%XML%'

Note: If these SQL statements do not work, check the vCenter Server Database Retention Policy.

To verify the current Event Database Retention Policy setting:

  1. Click Administration > vCenter Server Settings > Database Retention Policy.
  2. Check the value in the Events retained for field. Any event beyond number of days mentioned in the Events retained for field is removed.



Additional Information


VMware vCenter Server 上で最近削除または追加されたユーザーアカウントを見つける方法