Users may encounter an "Unable to authorize user" authorization error when attempting to modify firewall rules in vCenter using a custom scripting account via the REST API or PowerCLI. This issue can occur even when the account has been added to the Administrators group.
- VMware vSphere 7.0 and later
- PowerCLI or other API-based tools
- Custom service account with administrator group membership
This issue occurs because the service account lacks specific group membership and privileges required for modifying firewall rules via scripting in vSphere 7.0, even if it has broad administrator access. The account needs:
1. Membership in the SystemConfiguration.BashShellAdministrator group
2. Specific privileges: ViewConfiguration and ModifyLocalConf
To resolve this issue, follow these steps: