Skip to main content
If Opal doesn’t have a built-in integration for your HR system or identity provider, you can connect it as an upstream directory through a custom connector. Opal then reads your users from it and uses their status, manager and attributes to drive user lifecycle, manager approvals and attribute-based tags, the same way it uses Okta or Workday. You build a small, read-only API in front of your system. Opal calls it; your system never needs to call Opal. You can serve it in one of two formats:
  • Opal’s custom connector API. Three read-only endpoints, described below.
  • SCIM 2.0. If your system already serves SCIM 2.0 users, Opal can read it directly, as described at the end of this page.

What to build

Every request carries an X-Opal-Signature header. Verify it with the signing secret you set when you add the app. See Signature. You don’t need any other endpoint in the spec. An app added as an upstream directory has no groups, resources or event ingestion, and Opal never writes to your system, so it doesn’t call the /groups, /resources or /events endpoints or any POST, PUT or DELETE endpoint.

What GET /users must return

  • Every user, on every sync. Include suspended and terminated users with their current status. Opal treats a user who is missing from the response as removed from your system and offboards them.
  • A stable id. Use an ID that stays the same for the user’s lifetime, and use the same ID in GET /users/{user_id}.
  • An email. Opal matches users by email. A user without one can’t be linked to an Opal user.
  • A status of ACTIVE, SUSPENDED, DEPROVISIONED or DELETED. Any other value fails the sync. Omit it to give no opinion on status.
  • A manager_email, not a manager ID. If your system stores a manager’s ID, look up the manager’s email before you return the user.
  • Pages linked by next_cursor. An empty next_cursor ends the sync.
Put standard profile fields in attributes: first_name, last_name, title, team, profile_url and secondary_emails. Put anything else, such as location, employee type or hire date, in custom_attributes as a map from name to an array of strings. Opal admins can map those keys to tags, team or email.

Safeguard against mass offboarding

Opal holds back a sync that would offboard an unusually large share of the users your connector supplies, and shows a sync error on the connection instead. A failed or empty response never offboards anyone. Opal checks again at the next hourly sync.

Faster updates

The hourly sync is enough on its own. To get new and changed users into Opal within minutes, add one or both of these. Both need GET /users/{user_id}, and neither offboards anyone: terminations always apply at the next hourly sync.
  • Support updated_since on GET /users. Opal polls for users changed since its last check every few minutes. Opal detects whether your connector supports the filter, so you don’t need to configure anything.
  • Push changes to Opal over SCIM. Your system calls Opal’s SCIM endpoint when a user changes, and Opal re-reads that user.
Both are described in Near-real-time updates.

If your system already serves SCIM 2.0

When you add the app, set Directory Protocol to SCIM 2.0 and set Base URL to your SCIM base URL. Opal then sends the signing secret as a bearer token instead of signing requests, and reads:
  • GET /Users, paged with startIndex and count, for the hourly sync.
  • GET /Users/{id} to refresh one user.
  • GET /Users?filter=meta.lastModified ge "<timestamp>" for faster updates, if your server supports the filter.
Opal maps active to ACTIVE or DEPROVISIONED, reads name, title and emails from the core schema, reads department and manager from the enterprise extension, and keeps employeeNumber, costCenter, organization, division, department and userType as custom attributes.

Add the app in Opal

  1. Go to the Inventory page and select + App.
  2. Select the Custom HRIS / IdP tile.
  3. Fill in Identifier, Base URL and Signing Secret. See Create a custom app for what each field means.
  4. Select the Directory Protocol: Opal custom connector API or SCIM 2.0.
  5. Create the app. Opal checks the connection, then connects the app as an upstream directory.
The new directory appears under Configuration > Identities, where you can set its attribute priority against your other directories. See Add additional IDP/HR providers.
Last modified on November 25, 2026