Back to Checks
Local accounts are minimized
users_local_accounts_minimized
Service: usersSeverity: medium
Categories:identity-access
Resource Type:User
The number of local user accounts on the SDDC Manager does not exceed the configured maximum (default 2); local accounts bypass centralized identity management and should be minimized.
Risk
Local accounts are harder to audit, do not benefit from centralized password policies, and increase the risk of untracked access — weakening integrity of authentication decisions.
Run this check with Prowler
Run in Prowler CloudInstall
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_local_accounts_minimizedRecommendation
Minimize local accounts and prefer SSO-integrated accounts so identity decisions go through centralized policy and audit.
Remediation
Other
1Migrate local accounts to **SSO** / directory-backed accounts and remove unnecessary local accounts via the **SDDC Manager** UI.
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_local_accounts_minimized(Check):
def execute(self) -> list[CheckReportVCF]:
findings = []
max_local = users_client.audit_config.get("max_local_accounts", 2)
local_users = [u for u in users_client.users if u.is_local]
report = CheckReportVCF(
metadata=self.metadata(),
resource=users_client.local_users_resource,
)
if len(local_users) <= max_local:
report.status = "PASS"
report.status_extended = (
f"There are {len(local_users)} LOCAL account(s) (maximum: {max_local})."
)
else:
local_names = ", ".join(u.name for u in local_users)
report.status = "FAIL"
report.status_extended = (
f"There are {len(local_users)} LOCAL account(s) "
f"(maximum: {max_local}): {local_names}."
)
findings.append(report)
return findings