This script checks and fixes the default internal solution user and service account group memberships in vCenter. The python version of this script is designed to work for all versions of vCenter 7.x and 8.x.
For vCenter 6.x, use the older bash version.
Currently, it works on the the following users.
VMware vCenter Server 6.7
VMware vCenter Server 7.x
VMware vCenter Server 8.x
Run the check function
The --check function compares the current group memberships against the version specific mapping defined in the script, and then prints out any missing or extra groups found. This does not make any changes.
Run the fix function
The --fix function makes the same comparison that --check does, but also updates the users group memberships to match the pre-defined set. As this directly makes edits to the vmdir database, ensure a snapshot or backup is taken before using this.
Restart Services
Once the --fix function is finished, you should restart the services which were updated
service-control --stop --all && service-control --start --all