Back to Checks
Claude organization restricts invitations to specific email domains
organization_invite_domains_restricted
Service: organizationSeverity: medium
OfficialVerifiedPrivate
Categories:gen-aiidentity-accesstrust-boundaries
Resource Type:ClaudeOrganizationSettings
Invitations are limited to owned email domains. Without a domain restriction, anyone who can invite can add a personal or third-party address to the organization.
Risk
Without a domain restriction, anyone who can invite can add a personal or third-party address to the organization.
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-claude[runtime]"Run
prowler claude --checks organization_invite_domains_restrictedRecommendation
Populate the allowed invite domains with the email domains your organization owns.
Remediation
Other
1Populate the allowed invite domains with the email domains your organization owns.
Check Code
from prowler.lib.check.models import Check
from prowler_provider_claude.lib.report import CheckReportClaude
from prowler_provider_claude.services.organization.organization_client import (
organization_client,
)
class organization_invite_domains_restricted(Check):
"""Invitations are limited to owned email domains."""
def execute(self) -> list[CheckReportClaude]:
findings = []
for settings in organization_client.settings:
row = settings.get("allowed_invite_domains")
if row is None:
continue
report = CheckReportClaude(metadata=self.metadata(), resource=settings)
org = settings.name.removesuffix(" effective settings")
domains = [str(entry) for entry in (row.value or [])]
if domains:
report.status = "PASS"
report.status_extended = (
f"Organization {org} restricts invitations to {len(domains)} domain(s): "
f"{', '.join(domains)}."
)
else:
report.status = "FAIL"
report.status_extended = (
f"Organization {org} does not restrict which email domains can be invited "
"(allowed_invite_domains is empty)."
)
findings.append(report)
return findings