Every Kiweely Bridge call must run through an interactive OAuth 2.1 Authorization Code client created via Workday’s Register API Client task—never through Register API Client for Integrations or a shared Integration System User (ISU). Using the interactive grant forces every employee to authenticate on your tenant’s normal SSO screen and makes Workday enforce that individual worker’s exact domain, segment, and supervisory organization security on every request.
Why Shared ISUs Fail Security Review for Employee AI Access
Traditional Workday integrations use an ISU because a scheduled job has no human sitting at a keyboard. Reusing that pattern for an AI assistant creates three immediate security defects:
- Privilege escalation: An ISU that can read headcount, time off, and pay for all employees turns a prompt-injection bug or loose filter into a tenant-wide data leak.
- Broken audit trails: Every query and business process step logs under
ISU_AI_Connectorinstead of the real employee who triggered it, breaking SOX and SOC 2 attribution. - Duplicate authorization logic: Your team has to rebuild Workday’s constrained security groups, supervisory org hierarchies, and territory rules outside Workday—and maintain them every time HR changes a security group.
Per-employee OAuth 2.1 pass-through eliminates all three. Workday remains the single policy decision point.
How the Intersection of API Client Scopes and Worker Security Works
A common point of confusion during security reviews is the relationship between Scope (Functional Areas) on the Workday API client and Domain Security Policies on the employee.
Workday applies a strict logical AND (intersection):
- API client scope = ceiling. If you omit
Payrollfrom the API client’s Functional Areas, even a Payroll Administrator cannot query payroll data through Bridge. - Worker security = actual access. If you include
Staffingon the API client so managers can check open requisitions and direct reports, an individual contributor still sees only whatEmployee as Selfpermits in your tenant.
| Scenario | API client has Functional Area? | Signed-in worker has Domain Get/Put? | Result in Workday |
|---|---|---|---|
| ScenarioEmployee checks own PTO | API client has Functional Area?Yes (Time Off and Leave) |
Signed-in worker has Domain Get/Put?Yes (Self-Service: Time Off) |
Result in WorkdayAllowed; returns own balance only |
| ScenarioEmployee asks for peer’s salary | API client has Functional Area?Yes (Compensation) |
Signed-in worker has Domain Get/Put?No | Result in WorkdayBlocked by Workday (HTTP 403 / empty WQL result) |
| ScenarioPayroll Admin asks for payroll run | API client has Functional Area?No (Payroll excluded from client) |
Signed-in worker has Domain Get/Put?Yes | Result in WorkdayBlocked by Workday OAuth scope check |
| ScenarioManager views direct reports | API client has Functional Area?Yes (Staffing) |
Signed-in worker has Domain Get/Put?Yes (Constrained by Supervisory Org) | Result in WorkdayAllowed; scoped strictly to direct/subordinate orgs |
Step-by-Step: Create the OAuth 2.1 API Client in Workday
Run these steps in Sandbox first, then repeat in Production once role testing is complete.
- Open Workday and search for
Register API Client(do not selectRegister API Client for Integrations). - Fill in the client fields using the exact settings below:
| Workday field | Recommended setting | Notes |
|---|---|---|
| Workday fieldClient Name | Recommended settingKiweely Bridge - Sandbox (or Production) |
NotesAppears on the employee’s consent and authorization management screen. |
| Workday fieldClient Grant Type | Recommended settingAuthorization Code Grant |
NotesMandatory for per-employee pass-through with PKCE. |
| Workday fieldAccess Token Type | Recommended settingBearer |
NotesStandard bearer format expected by Workday REST, WQL, and RaaS endpoints. |
| Workday fieldRedirection URI | Recommended settingExact HTTPS callback URL from your Bridge admin console | NotesMust match character-for-character, including trailing slash rules. |
| Workday fieldInclude Workday Owned Scope | Recommended settingUnchecked unless explicitly required for a specific REST service | NotesKeep scopes minimal and explicit. |
| Workday fieldEnforce 30-Minute Access Token Idle Timeout | Recommended settingChecked | NotesDrops idle sessions quickly without disrupting active chat turns. |
| Workday fieldDisabled | Recommended settingUnchecked | NotesToggle this to kill all Bridge traffic instantly during an incident. |
- Under Scope (Functional Areas), start with the minimum set needed for your pilot:
System(required for WQL queries and executing web-service-enabled custom reports)Staffing(worker profile, manager chain, supervisory orgs)Time Off and Leave(leave balances, time-off requests)- Add
Absence,Expenses,Recruiting, orBenefitsonly when your rollout phase explicitly requires them.
- Click OK to generate the client.
- Copy the client credential immediately from the confirmation screen—Workday displays it once. If you close the screen before saving it in Bridge, you must run
Edit API Clientand generate a new credential. - Run
View API Clientsand record the four tenant-specific URLs at the top of the report:- Workday REST API Endpoint
- Token Endpoint
- Authorization Endpoint
- Workday Web Services (SOAP) base URL (for read-only SOAP calls if enabled)
Verifying PKCE and Stateless Credential Handling
OAuth 2.1 mandates Proof Key for Code Exchange (PKCE) with S256 code challenges on every Authorization Code flow, preventing authorization code interception in browser redirects and mobile deep links.
In Kiweely Bridge’s stateless architecture, the credential lifecycle works like this:
- The employee clicks Connect inside Claude, ChatGPT, or Gemini.
- Bridge initiates an OAuth 2.1 Authorization Code + PKCE flow to your Workday Authorization Endpoint.
- The employee signs in on Workday’s own sign-in screen (redirected to Okta, Entra ID, or Ping according to your
Manage Authentication Policiesrules). Bridge never sees the employee’s password or MFA code. - Workday returns the authorization code to Bridge’s callback URI; Bridge exchanges it with the PKCE verifier at Workday’s Token Endpoint.
- Bridge immediately encrypts the resulting Workday access/refresh credential inside a locked session handle and hands that locked handle to the AI assistant.
- Bridge writes nothing to disk or a database. On each subsequent tool call, the assistant sends the locked handle back to Bridge, Bridge decrypts it in RAM only for that HTTP call to Workday, strips any admin-blocked fields from the response, and discards both the decrypted credential and the Workday response when the request finishes.
The AI assistant cannot open the locked handle and never sees the raw Workday credential.
Configuring Authentication Policies for OAuth Flows
Check Manage Authentication Policies in Workday before inviting pilot users:
- Confirm that your authentication policy rule covering the employee population allows OAuth 2.0 / OpenID Connect or browser-based SAML SSO for the API client’s redirect flow.
- If your tenant restricts access by IP range, remember that the browser sign-in comes from the employee’s device IP, while the back-channel code exchange and API calls come from Kiweely Bridge’s egress IP.
- If you enforce IP restrictions on API traffic, use a Dedicated setup (fixed IP from Kiweely) or Self-hosted container (your VPC NAT gateway IP) and add that exact CIDR to Workday’s
Maintain IP Rangestask.
Enabling Per-User WQL and RaaS Access Without Over-Permissioning
Even with a properly configured API client, two Workday-side security checks frequently surprise teams during pilot testing:
- WQL execution domain: To let employees run WQL-backed answers through Bridge, their security group needs Get access on the relevant Workday Query Language data source domains (for example,
Worker Data: Public Worker ReportsorSelf-Service: Time Off). Workers without access to a data source simply get an empty/unauthorized response from Workday—Bridge does not elevate them. - Custom report sharing (RaaS): A custom report enabled as a web service will fail with
HTTP 403unless the asking worker is in a security group listed in the report’s Share tab and has access to the report’s underlying Data Source and all Report Fields (including calculated fields).
Operational Checklist Before Production Cutover
- API client created with
Register API Client(Authorization Code Grant), neverRegister API Client for Integrations. - Functional Areas trimmed to pilot scope;
Payrolland sensitive admin areas excluded unless explicitly approved. -
Enforce 30-Minute Access Token Idle Timeoutenabled. - Sandbox test verified in
View Signon Activityshowing the individual test worker’s username, not an ISU. - Revocation drill tested: revoking a test worker’s authorization in Workday immediately blocks their next prompt in Claude, ChatGPT, or Gemini.
- Separate API client registered in Production (never reuse Sandbox credentials or endpoints).
Next, configure field-level redaction and run a structured role-boundary test in Sandbox using the Kiweely Bridge AI admin agent guide.
Frequently asked questions
Why should I use Register API Client instead of Register API Client for Integrations?
Register API Client for Integrations binds every call to a single Integration System User (ISU) and bypasses per-employee security. Register API Client with Authorization Code Grant authenticates each individual worker through Workday SSO so every call inherits that worker's own security groups and domains.
Does Kiweely Bridge store employee Workday OAuth credentials in a database?
No. Kiweely Bridge keeps no table of employee credentials. Each worker's Workday credential is encrypted inside the locked session handle held by the AI assistant and decrypted only in memory for the duration of a single live call.
If I select the Compensation Functional Area on the API client, can every employee see compensation data?
No. Functional Areas on an API client act as an upper ceiling, not a permission grant. Workday computes the intersection of the API client's Functional Areas and the signed-in worker's own domain security policies.
Can an employee revoke their own Workday OAuth authorization without IT?
Yes. Any worker can open their Workday account settings and revoke active OAuth authorizations, or a Security Administrator can revoke authorizations for a worker or the entire API client immediately.