Back to Checks
supabase

Supabase organization has more than one owner

organization_multiple_owners
Service: organizationSeverity: low
OfficialVerifiedPrivate
Categories:identity-access
Resource Type:SupabaseOrganization

Checks that the organization has at least two members with the Owner role, as the Supabase production checklist recommends.

Risk

With a single owner, losing that account (the person leaves, loses their MFA device or is locked out) leaves nobody able to manage billing, members or organization settings.

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-supabase[runtime]"
Run
prowler supabase --checks organization_multiple_owners

Recommendation

Give the Owner role to at least two trusted members, and keep every other member on the least privileged role they need.

Remediation

Other

1In the Supabase dashboard, open Organization Settings > Team
2Pick a trusted member
3Change their role to Owner

Check Code

from types import SimpleNamespace

from prowler.lib.check.models import Check

from prowler_provider_supabase.check_report import CheckReportSupabase
from prowler_provider_supabase.services.organization.organization_client import (
    organization_client,
)


class organization_multiple_owners(Check):
    def execute(self) -> list[CheckReportSupabase]:
        # No members means the listing failed: an organization always has one.
        if not organization_client.members:
            return []
        identity = organization_client.identity
        organization = SimpleNamespace(
            id=identity.organization_slug,
            name=identity.organization_name or identity.organization_slug,
            region="global",
        )
        owners = [
            member.name
            for member in organization_client.members
            if any(role.lower() == "owner" for role in member.roles)
        ]
        report = CheckReportSupabase(metadata=self.metadata(), resource=organization)
        if len(owners) >= 2:
            report.status = "PASS"
            report.status_extended = (
                f"Organization {organization.name} has {len(owners)} owners: "
                f"{', '.join(owners)}."
            )
        else:
            report.status = "FAIL"
            report.status_extended = (
                f"Organization {organization.name} has {len(owners)} owner(s)"
                f"{': ' + owners[0] if owners else ''}; at least 2 are recommended."
            )
        return [report]