An example if organization may want to permit these applications with its corporate accounts e.g., 'example.com' while blocking personal accounts such as Gmail or Outlook.
This requirement cannot be fully enforced using native Inline-CASB tenant control on FortiOS 8.0.0 GA. Tenant control depends on whether the corresponding SaaS application definition supports tenant extraction. Not every application listed in Inline-CASB supports this function.
The limitations are as follows: ChatGPT: Native tenant extraction is not available in its Inline-CASB application definition. Claude: Native tenant extraction is not available in its Inline-CASB application definition. Gemini: Google tenant extraction is not available in FortiOS 8.0.0 GA. Partial support through the Google SaaS application is available from FortiOS 8.0.1 build 0226 onward. This does not cover every Gemini sign-in scenario.
Alternative configuration - vendor tenant restriction headers:
Where supported by the service provider, FortiGate can insert tenant restriction headers through a Web Proxy profile. This is separate from native Inline-CASB tenant extraction and can be configured without waiting for a new CASB application definition.
The examples below use approved workspace, organization, or domain identifiers.
Replace all placeholders with the actual values before applying the configuration.
Create destination objects for ChatGPT and Claude:
config firewall address
edit "GenAI-chatgpt.com"
set type fqdn
set fqdn "chatgpt.com"
next
edit "GenAI-claude.ai"
set type fqdn
set fqdn "claude.ai"
next
edit "GenAI-claude.com"
set type fqdn
set fqdn "claude.com"
next
edit "GenAI-anthropic.com"
set type fqdn
set fqdn "anthropic.com"
next
edit "GenAI-api.anthropic.com"
set type fqdn
set fqdn "api.anthropic.com"
next
end
config firewall addrgrp
edit "GenAI-ChatGPT"
set member "GenAI-chatgpt.com"
next
edit "GenAI-Claude"
set member "GenAI-claude.ai" "GenAI-claude.com" "GenAI-anthropic.com" "GenAI-api.anthropic.com"
next
end
Configure the Web Proxy profile to insert the provider-defined headers:
config web-proxy profile
edit "GenAI-Account-Restriction"
config headers
edit 1
set name "ChatGPT-Allowed-Workspace-Id"
set dstaddr "GenAI-ChatGPT"
set action add-to-request
set add-option replace
set protocol https
set content "<CHATGPT_WORKSPACE_UUID>"
next
edit 2
set name "anthropic-allowed-org-ids"
set dstaddr "GenAI-Claude"
set action add-to-request
set add-option replace
set protocol https
set content "<CLAUDE_ORGANIZATION_UUID>"
next
edit 3
set name "X-GoogApps-Allowed-Domains"
set dstaddr "G Suite"
set action add-to-request
set add-option replace
set protocol https
set content "example.com"
next
end
next
end
IMPORTANT:
The 'G Suite' destination above is the built-in address group used in Fortinet's Restricted SaaS access example. Check that it is available on the device and that all Google authentication destinations in use are covered. Replace example.com with the approved Google Workspace domain.
The ChatGPT header requires a permitted Workspace ID, not an email domain. The Claude header requires a permitted Organization ID. Use comma-separated UUIDs, without spaces, where more than one workspace or organization is approved. The respective provider must support the tenant restriction feature for the customer's account or organization.
The Google header restricts Google account sign-in to approved domains. It affects Google services generally, not only Gemini, and does not guarantee control over anonymous use or every Gemini access method. Test it against the actual Google sign-in flow before deployment. Do not add consumer_accounts if personal Google accounts must remain blocked.
Apply the profile to the matching firewall policy. Replace <policy-id> with the existing policy number:
config firewall policy
edit <policy-id>
set utm-status enable
set inspection-mode proxy
set ssl-ssh-profile "deep-inspection"
set webproxy-profile "GenAI-Account-Restriction"
next
end
SSL deep inspection is required, and the FortiGate inspection CA must be trusted on the endpoints. Review the SSL inspection exemptions so the relevant provider and authentication requests are actually decrypted. Apply the change first to a dedicated test policy matching the intended users.
For ChatGPT, also block URL paths beginning with https://chatgpt.com/backend-anon/ using an appropriate URL filter if logged-out access must be prevented. The workspace header does not restrict anonymous usage.
If SSL deep inspection or header insertion is not suitable for the environment, use the identity and organization controls offered by the application provider, such as managed workspaces and SSO, where available.
If the requirement is to block these applications completely:
If account-level restriction is not available or cannot be rolled out, FortiGate can block or monitor the applications using Application Control 'Generative AI category', Web Filter 'Artificial Intelligence Technology category', or targeted URL or DNS filtering. FortiDLP can be used for supported content inspection. These are general access and content controls; they do not distinguish an approved corporate account from a personal account on the same service.
For testing:
After applying the Web Proxy profile, test separately with an approved and an unapproved account for each provider. For ChatGPT and Claude, also check that the correct header is inserted in the forwarded request. A 403 response can indicate a tenant restriction; a 400 response may indicate an incorrectly formatted or duplicated header. Confirm whether an existing personal-account session remains accessible, and test logged-out ChatGPT access separately.
Note: Check the Inline-CASB Application Definitions entitlement under System -> FortiGuard. If the required entitlement is missing, contact the Fortinet CS/TAC to clarify the subscription requirements. Having the entitlement does not change the native application-specific limitations above. Web Proxy header insertion is a separate feature from native Inline-CASB tenant extraction.
Related documents:
|