Before you start
Have a ZIA administrator and a ZIdentity administrator available. Prepare:- A ZIA subscription with OneAPI and third-party proxy chaining available.
- A Forge account that can manage integrations in the intended organization.
- A ZIA administrator who can create API roles, upload root certificates, configure proxies and gateways, change policies, and activate changes.
- A ZIdentity administrator with API Clients & Resources → Full access who can create the OneAPI client and assign its ZIA role.
- A pilot list of ZIA users, groups, or locations and the AI applications to protect.
- An owner for ZIA changes and an agreed pilot rollback procedure.
Choose the Forge environment and organization
For production, sign in to your production Forge console and select the customer organization before creating the connection. Use the certificate and proxy values shown by that connection throughout this guide. For staging, sign in to your staging Forge console and select a staging test organization. Use a separate OneAPI client, object prefix, gateway name, and restricted ZIA test scope. Repeat the setup in production with production values. Do not copy staging proxy addresses, ports, certificate IDs, or downloaded certificates into a production connection.Choose who manages ZIA configuration
Choose Customer-managed to use a read-only OneAPI client. Forge supplies the reference configuration and reports differences. Your ZIA administrator creates, updates, activates, and removes the ZIA objects. When Forge destinations change, review the updated configuration in Forge and apply the changes in ZIA. Choose Forge-managed to let Forge create and update supported ZIA policy objects after you review and authorize forwarding. This mode requires write permissions. Your administrator still uploads the certificate and creates the Proxy Gateway. Both modes use the same Forge gateway. In Customer-managed mode, you own URL category membership, overlapping domains, and rule precedence. Forge reports reference differences as advisories. Read-only access permits Forge to assign proxy destinations and provide its public certificate.Set up the integration
1. Create the ZIA API role and OneAPI client
Complete both parts below before entering credentials in Forge.API permissions
Create a ZIA API role for the chosen configuration mode:- In the ZIA Admin Portal, open Administration → Role Management and choose Add API Role. In consoles with updated navigation, search for Role Management. Create an API role rather than an administrator role or an SD-WAN partner role.
- Name the role for Forge. For Customer-managed, grant read access to the resources below. For Forge-managed, grant the listed write permissions as well. Full includes create, update, and delete. If the editor groups permissions under Policy Access, select the corresponding access level.
- Save the role. Follow Zscaler’s API role guidance for the editor available in your tenant.
Zscaler can group several capabilities into one role permission. Grant only the
access needed for your mode. The administrator who makes manual ZIA changes
needs the corresponding write permissions; the read-only Forge client does not.
For searchable pilot selection, allow reads of
/users, /groups, and
/locations. If your role does not permit a lookup, use the advanced numeric-ID
entry after an authorized administrator verifies the IDs in ZIA. Initial root
upload is an administrator task. Root certificate IDs come from
/rootCertificates; a root ID is not its fingerprint, serial number, or a
ZIdentity identifier. Forge verifies the root selected on the activated proxies.
The Forge client does not need API-client administration, administrator
management, reporting, or NSS permissions. Do not use an unrelated administrator
role to work around a failed check.
Create the OneAPI client
- In ZIdentity, open Administration → API Configuration → OneAPI → API Resources. In the legacy portal, open Integration → API Resources. Confirm the new role appears under the correct ZIA tenant. If it is missing, use Sync Now and check that you created an API role in the linked tenant.
- Open OneAPI → API Clients and choose Add API Client. In the legacy portal, use Integration → API Clients.
- Enter a descriptive name and enable the client.
- Under Client Authentication, select Secret and generate a secret. Copy the secret value while it is displayed. Store it securely.
- Open Resources, expand Internet & SaaS (ZIA) for the correct tenant and cloud, and select the Forge API role. This role assignment supplies the client’s ZIA scope. Do not select None or a role belonging to another ZIA tenant.
- Save the client and copy its Client ID. Enter the client ID and secret value in Forge. Do not enter the secret’s identifier, an access token, or a legacy Cloud Service API key.
https://YOUR-VANITY-DOMAIN.zslogin.net/oauth2/v1/token and OneAPI at
https://api.zsapi.net/zia/api/v1. It obtains tokens automatically. There is no
scope-string input in Forge. Assign the role in ZIdentity rather than pasting a
legacy OAuth scope string into another field.
See Zscaler’s API client setup,
API resource synchronization,
and API Clients & Resources administrator permissions.
Before continuing: confirm that the enabled OneAPI client has the Forge API
role under the correct ZIA tenant. Keep its client ID and secret value available.
2. Save the connection credentials in Forge
- Sign in to the intended Forge environment and select the customer organization.
- Open Settings → Integrations → Zscaler ZIA → Connection.
- Fill in the four credential fields using the list below.
- Choose Customer-managed for read-only access or Forge-managed for authorized ZIA policy updates.
- Choose Save credentials and continue.
Leave gateway details for later. You do not need a proxy address, gateway
ID, or certificate ID to save credentials. Forge supplies the proxy addresses
after you prepare the gateway. Your administrator creates the ZIA objects afterward.
Before continuing: the saved connection shows the pilot settings and remains paused.
If credential validation fails, correct the indicated field or API permission and retry.
3. Save the pilot scope and prepare the Forge gateway
- Under Traffic scope, choose Locations, Users, or Groups.
- Search for the pilot members and select the matching records. Match users by name and email. Choose All locations and users only for an intentional organization-wide rollout.
- Enter a ZIA Proxy Gateway name, such as
Forge pilot gateway. Choose the name now. You create the gateway with that exact name in ZIA in step 4. - In ZIA Firewall Control, block the QUIC network service for the same pilot scope. Follow Zscaler’s firewall policy guidance.
- Return to Forge and select UDP/443 is blocked for this pilot scope after the block is configured.
- Leave Apply Access policy to traffic without a signed-in user off unless the pilot intentionally includes unidentified traffic.
- Choose Save pilot settings.
- Under Forge gateway, choose Prepare gateway.
- Wait for the assigned proxy details under Finish gateway setup.
- Ask your ZIA administrator to retrieve the matching records through OneAPI.
Use
/zia/api/v1/users,/zia/api/v1/groups, or/zia/api/v1/locationsfor the selected scope type. - Match the returned record to the intended pilot member. For a user, confirm
the
nameandemail. You can verify a candidate withGET /zia/api/v1/users/{id}. - Copy the numeric
idfrom that ZIA record. ZIdentity IDs and external directory IDs are different identifiers, even when they are numerical. - Enter up to eight distinct positive IDs, separated by commas, and save the pilot settings.
4. Finish gateway setup in ZIA
Complete these steps in the same Forge environment, Forge organization, and ZIA tenant used above. Zscaler is updating its navigation. If a path differs, search for the named page in the Zscaler console.Download and upload the Forge root
- In Forge, open the saved ZIA connection’s Connection tab.
- Under Finish gateway setup, choose Download Forge certificate. The button downloads the current public inspection root for the selected Forge organization from that environment. The certificate download does not require ZIA write permissions. If it is unavailable, follow the certificate preparation instructions in Forge.
- In ZIA, open Infrastructure → Internet & SaaS → Network Policies → Root Certificates and choose Add Root Certificates.
- Enter a recognizable certificate name. Set Type to Proxy Chaining.
- In Content, upload the downloaded PEM file and choose Save.
Create the proxies and gateway
Use this field list for each proxy. Copy primary values to the primary proxy and secondary values to the secondary proxy.
Create the proxies first, then the gateway:
- In ZIA, open Infrastructure → Internet & SaaS → Network Policies → Forwarding Control → Proxies and Gateways. In the legacy editor, use Policy → Forwarding Control → Proxies & Gateways.
- On Proxies, choose Add Proxy. Copy the primary proxy values from Forge’s Finish gateway setup exactly. Enter Name as Proxy Name, Address as IP Address/FQDN, and the displayed Port and Description. The description identifies the Forge-owned proxy.
- Set Proxy’s Root Certificate to the Forge root you uploaded. Enable Insert X-Authenticated-User. Leave Enable Base64 Encoding for X-Authenticated-User Value off. Choose Save.
- If Forge displays a Secondary proxy, create it with its own displayed name, description, and address. Use the displayed port, the same uploaded root, and the same identity-header settings. Do not substitute the primary proxy’s address or use a proxy from another connection.
- On Proxy Gateways, add a gateway with the exact ZIA Proxy Gateway name saved in Forge. Select the newly created primary proxy under Primary Proxy. If Forge displayed a secondary proxy, select that proxy under Secondary Proxy. Leave the secondary unset only when Forge shows no secondary destination.
- Enable Fail Close so ZIA drops traffic if the configured proxies are unreachable. Choose Save.
- Open Activation, review the pending changes, and activate them. Wait until activation completes. Saving alone does not publish the configuration. Coordinate with your ZIA administrator if unrelated changes are pending.
Attach the numeric ZIA certificate ID
- Have your ZIA administrator retrieve the uploaded root with
GET https://api.zsapi.net/zia/api/v1/rootCertificatesusing an authorized OneAPI client. Match the uploaded certificate by name and certificate details. Copy its numericid. - In Forge’s Finish gateway setup, enter that number in ZIA certificate
ID and choose Verify certificate. The corresponding connection field
is
proxyRootCertificateId. Do not enter a certificate fingerprint, serial number, PEM text, or the gateway ID. - Wait for Certificate verified. Forge checks the activated gateway and both configured proxies before accepting the attachment. If verification fails, check the root selection, primary and secondary references, exact proxy values, identity-header settings, and completed ZIA activation.
GET /zia/api/v1/proxyGateways.
Leave it blank to resolve the exact gateway name. Numeric IDs are local to the
ZIA tenant. Never reuse an ID from another tenant or assume a staging ID is valid
in production.
Before continuing: ZIA activation has completed, and Forge shows
Certificate verified for the uploaded root.
5. Verify setup and enable the Forge connection
- Select the protected applications and pilot scope in Forge.
- Choose Verify setup. Resolve failed Forge destination, certificate, scope, or ingress admission prerequisites and retry.
- Choose Enable Forge connection for Customer-managed setup. Forge-managed setup still requires verified provider configuration before Enable connection.
6. Configure and verify pilot forwarding
Choose the procedure for the configuration mode saved on your connection. Keep all ZIA rules restricted to the selected pilot.Customer-managed configuration
Use this procedure with a read-only Forge API client. Your ZIA administrator makes and activates the changes.- On the Forge connection’s Forwarding tab, choose Verify forwarding.
- Wait for Forge to confirm that the gateway is ready. Keep ZIA forwarding disabled while the gateway is getting ready.
- Review the reference configuration and any policy advisories. Choose the ZIA rule order and destination categories appropriate for your policy.
- Enable the pilot forwarding rule in ZIA and activate the changes. Wait for ZIA activation to complete, then rerun the check in Forge.
- Test traffic from the selected pilot scope. Confirm the expected requests, identity, and policy outcomes in Forge activity. Gateway readiness and reference comparison alone do not verify traffic.
Forge-managed configuration
Use this procedure when the Forge API client has the write permissions listed in step 1.- Choose the protected applications in Forge Policies.
- Open Forwarding in the ZIA integration and choose Review forwarding.
- Review the proposed destinations, source scope, and rule precedence.
- Choose Authorize forwarding for the reviewed configuration.
- Choose Apply forwarding. Forge updates its supported ZIA objects and activates the changes.
- Choose Check provider state. Wait for any in-progress ZIA activation to finish before applying another change.
- Resolve any mismatch and verify that the applied configuration matches ZIA.
7. Verify traffic, identity, and policy
Run this checklist from a selected pilot user or location:- Open a protected AI destination and confirm that traffic appears in Forge.
- Confirm the browser or application validates TLS without certificate errors.
- Confirm Forge shows the expected user identity for signed-in traffic.
- Send a recognizable test prompt and verify its captured prompt and response content, provider, model, and policy outcome in Forge.
- Exercise a supported allow policy and a scoped deny policy. Remove the test deny and confirm that the same allowed request succeeds again.
- Verify the browser, native provider API, managed LLM, MCP, Resource, and CLI routes your organization intends to use. Include streaming, tool execution, continuation, cancellation, and recovery where the application supports them.
- For metered model calls, verify the recorded usage and cost. For a denied request, verify that the policy outcome is recorded.
- Confirm excluded users, groups, or locations retain their expected paths.
- Confirm the agreed failure behavior and recovery through the proxy gateway.
- Verify the rollback procedure before expanding the pilot.
8. Expand the production scope
- Complete the live checks with the initial production users and record the working forwarding configuration.
- Add the next users, groups, or locations in Forge Traffic scope and save the settings.
- Review the updated forwarding configuration. In Forge-managed mode, authorize and apply the current review. In Customer-managed mode, update the ZIA rules to match the review and activate the changes.
- Verify provider state and repeat the traffic, identity, and policy checks from a newly included user before expanding again.
Maintain the configuration
Advanced settings
Most connections can keep the defaults. Object name prefix defaults toforge-zia and has a 16-character limit. SSL inspection rule order and
Forwarding rule order default to 1 in the reference. In Customer-managed
mode, choose the precedence appropriate for your existing ZIA rules. A different
order is advisory and does not block Forge startup. Optional gateway and root
IDs identify
existing ZIA objects; they do not replace the provider readback checks.
After connecting, private service edges can use Private service edge
on the Connection page. Enter canonical IPv4 CIDRs one per line after Forge
approves their network access. Public ZIA uses managed sources. To remove an existing override, clear its ranges and choose
Use managed public sources. Never use this override to pin a roaming public
client to the last observed service-edge IP.
Coverage and identity
Forge maintains forwarding destinations from its supported Shadow AI catalog and configured native, managed LLM, MCP, Resource, and Network Access routes. In Forge-managed mode, accepted routing updates trigger reconciliation. In Customer-managed mode, review the required destination changes and apply them in ZIA. Check provider state and live traffic after each change. Do not assume a catalog update has changed customer-managed ZIA rules. Access denials execute in Forge infrastructure. Content policies require a supported semantic processor for that route; forwarding a generic API does not provide arbitrary request-body content inspection. Shadow AI discovery and policy decisions come from the inline path, without a separate NSS ingestion setup. ZIA attachesX-Authenticated-User after inspection. Forge handles Unknown
separately under explicitly enabled Network Access policies and removes provider
identity headers before forwarding upstream. The assigned destination and trusted
Zscaler source ranges bind traffic to the connection; they do not cryptographically
authenticate the sending ZIA tenant.
Roll back
For Customer-managed:- Have your ZIA administrator disable the dedicated Forge forwarding rules or restore the previous rules.
- Review and activate the ZIA change.
- Verify the original traffic path from the affected pilot clients.
- Check the resulting provider state in Forge.
- Pause the Forge connection after traffic withdrawal is confirmed.
- Use Pause connection or the reviewed forwarding rollback action.
- Wait for the operation and any ZIA activation to complete.
- Confirm provider readback shows the expected withdrawal.
- Verify the original traffic path from the affected pilot clients.