Connectors & TransformsNovember 2026

Handling Multiple Base URLs and Separate Authentication in the SailPoint ISC Web Services Connector

Tyler Rettkowski

Tyler Rettkowski

Founder & SailPoint Expert Ambassador

Executive Summary

Out of the box, the SailPoint Identity Security Cloud (ISC) Web Services connector assumes one target host and one set of credentials per source. You configure a single global Base URL (genericWebServiceBaseUrl) and a single authentication method (BasicLogin, OAuth2, API Token, or Custom Authentication), and every operation inherits those exact settings. That model holds up for modern SaaS platforms behind a unified API gateway, yet it breaks on home-grown and legacy enterprise applications where account reads live on a reporting server while writes hit a separate transactional or SOAP service under different credentials.

When teams hit that wall in production, the usual workarounds create expensive operational drag. Splitting one application into separate read and write ISC sources breaks native correlation, attribute sync, access requests, and SOX or SOC 2 access reviews, leaving engineers to maintain brittle cross-mapping workflows and manual provisioning backlogs. On the connector side, ad-hoc BeanShell fixes often hardcode environment URLs or service passwords, wipe out built-in encryption keys inside connectorAttributes.encrypted, or leak primary Authorization headers onto a secondary host. If the primary read endpoint lags behind writes on a delayed reporting replica, post-provisioning Get Object checks fail, leaving access requests stalled and triggering repeat attribute sync loops.

When we build split-endpoint integrations in production for enterprise tenants on the Virtual Appliance (VA) Web Services connector, we keep both APIs inside a single ISC source. The primary read API stays in the standard connection fields so health checks, pagination, and aggregations run natively. Provisioning operations pass through a fail-closed WebServiceBeforeOperationRule that reads environment URLs from custom connectorAttributes, resolves the secondary secret from ISC Secrets Management or an appended encrypted attribute, redirects the request with setFullUrl(), and replaces the header map with a brand-new HashMap(). The trade-off is maintaining a VA-bound BeanShell rule and monitoring the secondary host outside ISC's built-in Test Connection, while pure SaaS Web Services sources need Use cURL Command, SaaS Connectivity Customizers, or an internal API gateway instead.

VA vs. SaaS Web Services Connector

The rule-based pattern in this guide targets the Virtual Appliance (VA) Web Services connector, because WebServiceBeforeOperationRule and WebServiceAfterOperationRule only execute on a VA. If you run the pure SaaS Web Services connector, you cannot attach BeanShell rules and should evaluate the Use cURL Command option, SaaS Connectivity Customizers, or an internal API gateway instead.


When You Need Multiple Base URLs or Separate Auth

Most standard connectors never need custom host routing. This pattern is an edge case that surfaces on internal or legacy applications where custom endpoints already sit across separate services, and the application owner has no budget or appetite to build a unified facade API just for SailPoint. In production, it almost always falls into one of four topologies.

1. Split Read and Write Platforms

Aggregations pull bulk CSV or JSON exports from a reporting server (https://reporting.api.example.com), while account creation, attribute updates, and role assignments must hit a transactional API or legacy SOAP service (https://provisioning.api.example.com) with its own credentials.

2. Microservice or Domain-Split APIs

User identity endpoints live on one subdomain (https://directory.api.example.com), while entitlement grants or license assignments live on a completely separate host (https://licensing.api.example.com).

3. Least-Privilege Credential Separation

Security teams frequently require aggregations to run under a read-only service account, while provisioning uses a separate write-scoped account or a different auth flow (for example, BasicLogin for reads and OAuth2 Client Credentials for writes).

4. Hybrid Single Operations

One provisioning action (such as Disable Account) has to query current entitlements from the primary read API with primary credentials, then issue one or more write calls against the secondary provisioning API with secondary credentials.


Keeping Everything in One Source and Read-After-Write Consistency

When an application exposes two separate APIs, many teams initially consider building two Web Services sources in ISC: one source to aggregate accounts and another to provision them. For split halves of the same application account, that design causes more operational pain than it solves.

Account correlation, access requests, attribute sync, and user access certifications all expect account state and provisioning actions to live on the same ISC source. Splitting them forces custom workflows or manual entitlement cross-mapping just to keep Joiner, Mover, and Leaver events working. Keeping both APIs inside one source preserves native lifecycle behavior while letting WebServiceBeforeOperationRule route specific write operations to the secondary host.

Single-Source Multi-Endpoint Architecture diagram showing SailPoint ISC Virtual Appliance Web Services Connector routing reads to Primary Read API and provisioning via WebServiceBeforeOperationRule to Secondary Write APISingle-source multi-endpoint pattern on the VA Web Services connector: read operations use default source settings while provisioning routes through WebServiceBeforeOperationRule.

Prerequisite Check: Instant Read-After-Write Consistency

Before writing a line of BeanShell, verify one architectural requirement with the application owner: any account or entitlement written through the secondary provisioning API must appear immediately on the primary read API.

Right after Create Account, Update Account, Add Entitlement, or Remove Entitlement completes against the provisioning host, SailPoint ISC triggers a Get Object call against the primary read endpoint to pull the updated account back and confirm the change took effect.

Watch Out for Reporting Replica Lag

If the read endpoint queries a delayed reporting replica, a cached view, or a batch sync that takes minutes or hours to refresh, Get Object on a brand-new account returns 404 or omits the entitlement that was just added. Provisioning verification fails, access requests appear incomplete, and attribute sync can enter repeat loops until the next scheduled aggregation catches up. When replication lag exists, point Get Object at the transactional API through a Before Operation rule or have the application team fix the lag before go-live.

Post-Provisioning Verification Sequence diagram showing Write committed to Secondary Write API followed by immediate Get Object verification on Primary Read APIPost-provisioning verification sequence: ISC executes Get Object immediately after every write to confirm the target account state.

Comparing Five Ways to Handle Split Endpoints in ISC

Before deploying custom connector rules, weigh the five patterns teams use to handle multi-endpoint applications in Identity Security Cloud. The right choice depends on whether you run a Virtual Appliance, whether authentication differs between hosts, and whether your platform team already owns an API gateway.

ApproachDifferent Base URLsDifferent AuthSaaS ConnectorMaintainabilityBest Fit
WebServiceBeforeOperationRule + Encrypted/Vaulted AttrsYes (setFullUrl)Yes (fresh header map + restClient)No (VA only)MediumVA sources where aggregations and provisioning hit different hosts or auth schemes
Use cURL Command per OperationYesLimited (static headers or basic inline interpolation)YesLow for complex payloadsSimple one-off static endpoints with no dynamic token exchange
Shared Root Domain + Relative contextUrlSame hostname onlyNoYesHigh (when applicable)Endpoints sharing one host and one auth scheme (such as /v1 vs /v2)
External API Gateway / Thin FacadeYes (abstracted behind gateway)Yes (handled by gateway)YesHigh (with gateway ownership)SaaS-only tenants or teams already standardizing integrations behind a gateway
Separate ISC SourcesYesYesYesLow (breaks single-source lifecycle)Truly independent systems that do not share account ownership

1. WebServiceBeforeOperationRule (setFullUrl + Fresh Headers)

This gives your team direct programmatic control over the target URL, HTTP method, headers, authentication flow, and payload serialization. It works cleanly with both static encrypted attributes and ISC Secrets Management, keeping environment-specific URLs in source configuration instead of BeanShell code. The trade-off is that it requires a Virtual Appliance, introduces BeanShell code to test and version-control, and leaves ISC's built-in Test Connection health check monitoring only the primary Base URL.

2. Use cURL Command per Operation

Configuring a per-operation cURL command requires zero BeanShell rules and works on both VA and SaaS Web Services connectors, making it handy for a quick override when one static operation needs an absolute URL. It gets brittle fast once you deal with dynamic payloads, optional attributes during Update Account attribute sync, or SOAP/XML envelopes. It cannot perform multi-step OAuth2 token exchanges or conditional routing, and inline credentials in cURL strings introduce audit risk unless carefully parameterized.

3. Shared Root Domain (https://) + Relative contextUrl

If all endpoints live under the same hostname and share one authentication method, relative contextUrl paths keep you completely rule-free. Do not try to stretch this trick across distinct hosts by setting genericWebServiceBaseUrl to a truncated dummy value like https://, because that frequently fails URL validation or breaks Test Connection, and it never solves separate credentials.

4. External API Gateway or Thin Facade

An internal API gateway moves routing, protocol translation, and secondary auth out of ISC BeanShell into a dedicated proxy tier, presenting uniform REST endpoints to the SaaS Web Services connector. It is a clean option if your organization already runs and staffs an enterprise gateway, though standing up new infrastructure to host, patch, and monitor is overkill when you already operate a VA and only need to route a handful of operations.

5. Splitting Into Separate ISC Sources

Two sources make sense only when two APIs represent genuinely independent applications. Splitting read and write paths for a single user directory breaks native lifecycle state actions, provisioning policies, and access certifications.


Step 1: Put the Primary Read API in Standard Source Configuration

Here is the exact pattern we deploy on VA Web Services sources so read traffic stays zero-code. Assign the API serving Test Connection, Account Aggregation, Group Aggregation, and Get Object to the source's standard genericWebServiceBaseUrl and authenticationMethod. That keeps ISC health checks, built-in pagination, and primary token refresh working natively without attaching rules to read operations. Before locking this in, confirm that Get Object reflects writes from the provisioning endpoint immediately.

ISC Connection Settings configured with Basic Authentication, primary read Base URL https://reporting.api.example.com, read-only username, and Credential Path for passwordStandard Connection Settings assigned to the primary read API (https://reporting.api.example.com) with a read-only service account and vault Credential Path.

Step 2: Store the Secondary URL and Username in Custom connectorAttributes

Never hardcode environment URLs or service account names inside a BeanShell rule. Putting https://dev-provisioning.api.example.com inside rule code turns Sandbox-to-Production promotion into a manual edit waiting to break.

Instead, store non-secret metadata directly on the source inside connectorAttributes (for example, provisioningApiUrl and provisioningApiUsername) using PATCH /sources/v1/{sourceId}. Because application.getAttributeValue(...) reads any key in connectorAttributes, the exact same BeanShell rule promotes cleanly from Sandbox to Production without code edits.

Sanitized source connectorAttributes JSON showing throwProvBeforeRuleException true, password_credential_provider_path, BasicLogin authenticationMethod, and provisioningApiUsernameSanitized connectorAttributes JSON showing primary credential path, fail-closed rule flags, and custom provisioningApiUsername.

Step 3: Store the Secondary Secret Securely (Two Patterns)

You have two clean options for keeping the secondary credential out of plaintext source exports and BeanShell code, depending on whether your tenant runs ISC Secrets Management against an external vault.

Pattern A: Custom Encrypted Connector Attribute (connectorAttributes.encrypted)

When you do not have an external credential vault connected to ISC Secrets Management, store the secondary password or client secret in a custom attribute (such as provisioningApiPassword) and add that attribute key to connectorAttributes.encrypted. The VA encrypts the stored value at rest and decrypts it automatically when your rule calls application.getAttributeValue("provisioningApiPassword").

Critical Gotcha: Never Overwrite connectorAttributes.encrypted

connectorAttributes.encrypted is a comma-separated string listing every attribute key the VA encrypts. If a JSON Patch replaces it with only your new custom key, you strip encryption from built-in connector attributes like accesstoken, refresh_token, client_secret, and clientKeySpec. Always GET the source first, preserve every existing key, and append yours.

You can grab the ready-to-use patch template in patch-multi-endpoint-custom-encrypted.json or run Set-SecondaryConnectorConfig.ps1, which fetches the existing encrypted list automatically before building the patch. The main trade-off is operational: custom attributes do not render in the ISC source UI, so credential rotation has to be scripted over the API, and custom attribute names cannot bind directly to ISC Secrets Management.

[
  {
    "op": "add",
    "path": "/connectorAttributes/provisioningApiUrl",
    "value": "https://provisioning.api.example.com"
  },
  {
    "op": "add",
    "path": "/connectorAttributes/provisioningApiUsername",
    "value": "svc_provisioning_writer"
  },
  {
    "op": "add",
    "path": "/connectorAttributes/provisioningApiPassword",
    "value": "REPLACE_WITH_SECONDARY_CREDENTIAL"
  },
  {
    "op": "add",
    "path": "/connectorAttributes/throwProvBeforeRuleException",
    "value": true
  },
  {
    "op": "add",
    "path": "/connectorAttributes/throwProvAfterRuleException",
    "value": true
  },
  {
    "op": "replace",
    "path": "/connectorAttributes/encrypted",
    "value": "accesstoken,refresh_token,oauth_token_info,client_secret,private_key,private_key_password,clientCertificate,clientKeySpec,resourceOwnerPassword,custom_auth_token_info,provisioningApiPassword"
  }
]

Pattern B: Repurposing an Unused Built-In Secret Field for ISC Secrets Management

ISC Secrets Management (secrets://... credential provider paths) only binds to recognized built-in secret fields on the Web Services connector schema: password, client_secret, clientKeySpec, private_key, private_key_password, and resourceOwnerPassword.

If your primary API uses BasicLogin (consuming only username and password), fields like clientKeySpec or client_secret sit unused. By patching clientKeySpec_credential_provider_path to your vault path (shown in patch-multi-endpoint-secrets-mgmt.json), the VA resolves the secret dynamically from your vault at runtime and passes the plaintext value to your rule when you call:

String secondaryPassword = (String) application.getAttributeValue("clientKeySpec");
ISC Common Configuration showing Client Private Key bound to a Credential Path secrets://MyVaultProvider/MyPath/secondary-api-secretISC Common Configuration showing Client Private Key (clientKeySpec) bound to a vault Credential Path.
Sanitized connectorAttributes JSON showing provisioningApiUrl, throwProvAfterRuleException, clientKeySpec_credential_provider_path, and the full encrypted attribute listSanitized connectorAttributes JSON confirming clientKeySpec_credential_provider_path alongside the preserved encrypted key list.

Zero static secrets live inside SailPoint with Pattern B, and vault rotation takes effect automatically without touching ISC. Watch three operational caveats when deploying this in production:

  • Storing an API password or OAuth secret inside clientKeySpec is non-obvious to the next engineer who opens the source. Document the exact field mapping inside the source description and rule header comments.
  • If someone later switches the primary API from BasicLogin to OAuth2 or mutual TLS, the connector will claim client_secret or clientKeySpec for itself. Pick an unused field that stays clear of your primary auth roadmap.
  • Test saving an unrelated setting in the ISC Admin UI after patching custom *_credential_provider_path attributes, and manage source updates through API or CI/CD pipelines so manual UI saves do not accidentally wipe unused fields.

Step 4: Override URL, Method, Headers, and Body in WebServiceBeforeOperationRule

With source attributes in place, attach a WebServiceBeforeOperationRule to every provisioning operation targeting the secondary host (Create Account, Update Account, Add Entitlement, Remove Entitlement, Disable Account). The full downloadable rules are available in WebServiceBeforeOperation-MultiEndpoint-BasicAuth.java and WebServiceBeforeOperation-MultiEndpoint-OAuth2.java. Every production rule we ship implements four core safeguards.

1. Read Config and Fail Closed

If the secondary URL or credentials are blank, never return requestEndPoint unmodified. Returning it unmodified instructs the connector to fire the provisioning call against the primary Base URL using primary credentials. Throw a RuntimeException and set throwProvBeforeRuleException: true on the source so the provisioning plan stops immediately and surfaces the error.

String secondaryBaseUrl  = stripTrailingSlash((String) application.getAttributeValue("provisioningApiUrl"));
String secondaryUsername = safeTrim((String) application.getAttributeValue("provisioningApiUsername"));
String secondaryPassword = (String) application.getAttributeValue("clientKeySpec");

if (secondaryBaseUrl.length() == 0) {
    throw new RuntimeException("provisioningApiUrl is not configured on the source.");
}
if (secondaryUsername.length() == 0 || secondaryPassword == null || secondaryPassword.trim().length() == 0) {
    throw new RuntimeException("Secondary API username or password is not configured on the source.");
}

2. Override the Full URL and HTTP Method

Calling requestEndPoint.setFullUrl(...) tells the Web Services connector to bypass genericWebServiceBaseUrl + contextUrl for that transaction and dispatch the call directly to your target URL:

requestEndPoint.setFullUrl(targetUrl);
requestEndPoint.setHttpMethodType("PATCH");

3. Strip Primary Auth with a Brand-New Header Map

Never mutate requestEndPoint.getHeader() in place when crossing hosts or auth domains. Build a fresh HashMap() and pass it to requestEndPoint.setHeader(headerMap) so the primary API's Authorization header or custom API key header is dropped completely and never reaches the secondary host:

String basicAuthValue = "Basic " + Base64.getEncoder().encodeToString(
    (secondaryUsername + ":" + secondaryPassword).getBytes("UTF-8")
);

Map headerMap = new HashMap();
headerMap.put("Authorization", basicAuthValue);
headerMap.put("Content-Type", "application/json");
headerMap.put("Accept", "application/json");
requestEndPoint.setHeader(headerMap);
Header Isolation comparison showing unsafe mutation of existing request headers leaking primary credentials versus safe brand-new HashMap isolationMutating getHeader() in place risks leaking primary API keys or tokens onto the secondary host; a fresh HashMap isolates credentials per domain.

4. Set the Raw Body Map

When constructing the payload programmatically in a Before Operation rule, populate the body map with bodyFormat set to "raw" and place the serialized string in jsonBody. SailPoint uses the jsonBody key for all raw request payloads, even when sending XML/SOAP envelopes instead of JSON:

Map bodyMap = new HashMap();
bodyMap.put("bodyFormat", "raw");
bodyMap.put("bodyFormData", null);
bodyMap.put("jsonBody", payload);
requestEndPoint.setBody(bodyMap);

Handling Secondary OAuth2 and Hybrid Multi-Call Operations

Once the base routing rule is working, two real-world variations show up quickly in enterprise environments: secondary APIs protected by OAuth2 Client Credentials and single provisioning actions that require multiple HTTP calls.

Secondary OAuth2 Client Credentials

When the secondary host requires an OAuth2 Bearer token instead of Basic Auth (see WebServiceBeforeOperation-MultiEndpoint-OAuth2.java), use the rule-injected restClient (WebServicesClient) to POST form credentials to secondaryTokenUrl, parse access_token with org.json.JSONObject, and put Authorization: Bearer <token> into your fresh headerMap.

Always use the injected restClient instead of instantiating new WebServicesClient(), so VA proxy and truststore configuration stay intact. On high-volume provisioning sources, cache the token with an expiration buffer rather than hitting the secondary token server on every single account event.

Map clientArgs = new HashMap();
clientArgs.put(WebServicesClient.ARG_URL, tokenUrl);
client.configure(clientArgs);

Map tokenHeaders = new HashMap();
tokenHeaders.put("Content-Type", "application/x-www-form-urlencoded");
tokenHeaders.put("Accept", "application/json");

Map formPayload = new HashMap();
formPayload.put("grant_type", "client_credentials");
formPayload.put("client_id", clientId);
formPayload.put("client_secret", clientSecret);

List allowedStatuses = new ArrayList();
allowedStatuses.add("2**");

String rawResponse = client.executePost(tokenUrl, formPayload, tokenHeaders, allowedStatuses);
JSONObject tokenJson = new JSONObject(rawResponse);
String accessToken = tokenJson.optString("access_token", "").trim();

Hybrid and Multi-Call Operations (The N-1 Pattern)

Sometimes a single operation (like Disable Account on a legacy app where disabling requires revoking every assigned role one by one) has to read current entitlements from the primary read API first, then fire multiple sequential write calls against the secondary API because no bulk endpoint exists. To keep the VA and SailPoint's retry handling clean, we execute the read call and the first N - 1 write calls directly inside the rule with explicit connection and read timeouts, then hand the final write call back to SailPoint via requestEndPoint. That lets SailPoint track, log, and retry the concluding operation natively.


Production Security Checklist

Splitting hosts and credentials inside one connector widens the surface area for misconfiguration. Before moving a multi-endpoint source to production, verify all eight controls.

1. Zero Hardcoded Secrets

Keep passwords, API keys, client secrets, and static tokens completely out of BeanShell rules, contextUrl strings, and curlCommand fields. Bind to ISC Secrets Management (*_credential_provider_path) when a vault is connected, or store them via connectorAttributes.encrypted otherwise.

2. Never Overwrite connectorAttributes.encrypted

Read the source via GET /sources/v1/{sourceId} first and append custom attribute keys to the existing comma-separated list. Run Set-SecondaryConnectorConfig.ps1 (with -WhatIf preview support) instead of hand-editing replace patches from memory.

3. Block Cross-Domain Credential and Cookie Leakage

Always pass a fresh HashMap() into requestEndPoint.setHeader(...) so primary credentials never reach the secondary API. When both hosts share a parent domain (such as reporting.example.com and provisioning.example.com), check whether disableCookies should be set to true so session cookies from one host are not replayed against the other.

4. Fail Closed on Missing Config

Set both throwProvBeforeRuleException: true and throwProvAfterRuleException: true on the source. Throw a RuntimeException inside your rule whenever provisioningApiUrl or secondary credentials come back empty rather than falling through to the primary endpoint.

5. Sanitize ccg.log Output

Never print decrypted secrets, Base64 Basic headers, Bearer tokens, raw OAuth responses, or full headerMap objects into Virtual Appliance logs. Log only non-sensitive operational fields (operation type, target URL, native identity, payload length), and drop temporary log.error troubleshooting statements back to log.info or log.debug before production cutover.

6. Escape Inputs and Serialize Payloads Properly

Construct JSON payloads with org.json.JSONObject instead of string concatenation. For secondary SOAP/XML endpoints, XML-escape every dynamic value (&, <, >, ", ') before placing it into the envelope, and encode path or query parameters with URLEncoder.encode(..., "UTF-8").

7. Enforce TLS, Explicit Timeouts, and VA Egress Rules

Keep trustAllCerts and allowAllHosts disabled in production and import internal CA certificates into the VA truststore instead. For direct HTTP calls inside a rule, set explicit connectTimeout and readTimeout limits so a hung secondary server cannot tie up VA CCG worker threads, and confirm VA firewall egress rules allow both the primary and secondary hosts.

8. Monitor Both Endpoints and Avoid Static Initial Passwords

ISC's built-in Test Connection only checks the primary Base URL, so monitor provisioning error rates on the secondary endpoint separately. Enforce least-privilege scopes on each service account, and avoid hardcoded placeholder passwords in Create Account rules (generate random one-time values or rely on SSO and directory-backed auth where supported).


Downloads & Production Templates

Download the JSON Patch templates, fail-closed Basic Auth and OAuth2 Before Operation rules, and the PowerShell helper script that merges connectorAttributes.encrypted safely:

patch-multi-endpoint-custom-encrypted.jsonPATCH /sources/v1 payload using connectorAttributes.encrypted (0.9 KB)
Download JSON
patch-multi-endpoint-secrets-mgmt.jsonPATCH /sources/v1 payload binding ISC Secrets Management (0.6 KB)
Download JSON
WebServiceBeforeOperation-MultiEndpoint-BasicAuth.javaFail-closed Before Operation rule for secondary Basic Auth (7.9 KB)
Download Rule
WebServiceBeforeOperation-MultiEndpoint-OAuth2.javaFail-closed Before Operation rule using restClient OAuth2 (8.3 KB)
Download Rule
Set-SecondaryConnectorConfig.ps1PowerShell script that reads and merges connectorAttributes.encrypted or binds Secrets Management with -WhatIf support (8.9 KB)
Download Script

Conclusion

When an enterprise application splits account reads and provisioning writes across separate hosts or credentials, keeping both paths inside a single VA Web Services source preserves correlation, attribute sync, and access certifications. Leave the primary read API in the standard connection fields, confirm immediate read-after-write consistency for Get Object, store secondary settings in vaulted or encrypted source attributes, and isolate every write inside a fail-closed WebServiceBeforeOperationRule with setFullUrl() and a fresh header HashMap().

Hitting Web Services Connector Limits in SailPoint?

When a SailPoint rollout gets bogged down in undocumented Web Services connector limits or split-API authentication constraints, internal teams can burn weeks chasing workarounds. If your team is hitting walls with complex multi-endpoint integrations, VA BeanShell rules, or custom ISC workflows, book a targeted SailPoint Architecture Review directly with our engineering team to walk through your setup and map out the cleanest fix.

Book Your SailPoint Architecture Review
Connectors & Transforms

Related Engineering Posts

All Posts