The script shows an example how through the use of PrivilegeChecks API a user can find the minimal set of privileges required for the execution of a specific workflow. The example shows how to find the minimal set of privileges required for VM creation from template. However the workflow can be substituted with any other workflow chosen by the user. The rest of the script can be reused as a template.#MIT#Python#Pyvmomi