Back to Checks
Claude SCIM-synced group grants at least one role
identity_scim_groups_carry_roles
Service: identitySeverity: low
OfficialVerifiedPrivate
Categories:gen-aiidentity-access
Resource Type:ClaudeGroup
Synced groups actually grant a role. A SCIM group with no roles attached syncs membership that grants nothing, which usually means the mapping was never finished.
Risk
A SCIM group with no roles attached syncs membership that grants nothing, which usually means the mapping was never finished.
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 identity_scim_groups_carry_rolesRecommendation
Attach the intended role to each synced group, or remove groups that are not used for access.
Remediation
Other
1Attach the intended role to each synced group, or remove groups that are not used for access.
Check Code
from prowler.lib.check.models import Check
from prowler_provider_claude.lib.report import CheckReportClaude
from prowler_provider_claude.services.identity.identity_client import identity_client
class identity_scim_groups_carry_roles(Check):
"""Synced groups actually grant a role."""
def execute(self) -> list[CheckReportClaude]:
findings = []
for group in [g for g in identity_client.groups if g.source_type == "scim"]:
report = CheckReportClaude(metadata=self.metadata(), resource=group)
if group.roles:
report.status = "PASS"
report.status_extended = (
f"Synced group {group.name} grants {len(group.roles)} role(s)."
)
else:
report.status = "FAIL"
report.status_extended = (
f"Synced group {group.name} has no roles attached, so syncing its "
"membership grants nothing."
)
findings.append(report)
return findings