Back to Checks
vcf

Number of admin users is limited

users_admin_count_limited
Service: usersSeverity: high
OfficialVerifiedVMware Cloud FoundationPrivate
Categories:identity-access
Resource Type:User

The number of users with the ADMIN role does not exceed the configured maximum (default 3), enforcing least privilege on the SDDC Manager.

Risk

An excessive number of ADMIN accounts widens the attack surface and increases the risk of unauthorized or accidental changes to the VCF environment, weakening integrity of the management plane.

Run this check with Prowler

Run in Prowler Cloud
Install
pip install --extra-index-url https://__token__:${PROWLER_REGISTRY_DOWNLOAD_API_KEY}@registry.prowler.com/simple/ "prowler-provider-vcf[runtime]"
Run
prowler vcf --checks users_admin_count_limited

Recommendation

Limit the number of ADMIN users and assign least-privilege roles wherever possible so the blast radius of an account compromise stays bounded.

Remediation

Other

1Review and reduce the number of **ADMIN** users in the **SDDC Manager** UI under **Administration > Users**, or use the VCF API to update user roles.

Check Code

from prowler.lib.check.models import Check
from prowler_provider_vcf.check_report import CheckReportVCF
from prowler_provider_vcf.services.users.users_client import users_client


class users_admin_count_limited(Check):
    def execute(self) -> list[CheckReportVCF]:
        findings = []
        max_admins = users_client.audit_config.get("max_admin_users", 3)
        admin_users = [u for u in users_client.users if u.is_admin]

        report = CheckReportVCF(
            metadata=self.metadata(),
            resource=users_client.admin_users_resource,
        )
        if len(admin_users) <= max_admins:
            report.status = "PASS"
            report.status_extended = (
                f"There are {len(admin_users)} ADMIN user(s) (maximum: {max_admins})."
            )
        else:
            admin_names = ", ".join(u.name for u in admin_users)
            report.status = "FAIL"
            report.status_extended = (
                f"There are {len(admin_users)} ADMIN user(s) "
                f"(maximum: {max_admins}): {admin_names}."
            )
        findings.append(report)
        return findings