Back to Checks
ChatGPT workspace groups are managed through SCIM
workspace_groups_managed_through_scim
Service: workspaceSeverity: low
OfficialVerifiedPrivate
Categories:gen-aiidentity-access
Resource Type:OpenAIWorkspaceGroup
Each workspace group is checked for being provisioned through SCIM rather than created manually in ChatGPT.
Risk
A manually managed group is not updated when people change team or leave, so its members keep access to the GPTs, projects and plugins shared with the group.
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-chatgpt[runtime]"Run
prowler chatgpt --checks workspace_groups_managed_through_scimRecommendation
Provision the group from the identity provider through SCIM and delete the manual one.
Check Code
from prowler.lib.check.models import Check
from prowler_provider_chatgpt.check_report import finding
from prowler_provider_chatgpt.services.workspace.workspace_client import workspace_client
class workspace_groups_managed_through_scim(Check):
def execute(self):
findings = []
for group in workspace_client.groups or []:
if group["is_scim_managed"]:
text = f"Group {group['name']} is managed through SCIM."
else:
text = f"Group {group['name']} is managed manually in ChatGPT, not through SCIM."
findings.append(finding(self.metadata(), group, group["is_scim_managed"], text))
return findings