Back to Checks
ChatGPT workspace users are managed through SCIM
workspace_users_managed_through_scim
Service: workspaceSeverity: medium
OfficialVerifiedPrivate
Categories:gen-aiidentity-access
Resource Type:OpenAIWorkspaceUser
Each enabled human user of the ChatGPT workspace is checked for SCIM provisioning from the identity provider.
Risk
A user created by hand is not removed when they leave the company, so access outlives employment.
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_users_managed_through_scimRecommendation
Provision the workspace from your identity provider with SCIM and move hand-made users under it.
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_users_managed_through_scim(Check):
def execute(self):
findings = []
for user in workspace_client.users or []:
if user["is_scim_managed"]:
text = f"User {user['name']} is managed through SCIM."
else:
text = f"User {user['name']} is not managed through SCIM."
findings.append(finding(self.metadata(), user, user["is_scim_managed"], text))
return findings