- 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 inGET /users/{user_id}. - An
email. Opal matches users by email. A user without one can’t be linked to an Opal user. - A
statusofACTIVE,SUSPENDED,DEPROVISIONEDorDELETED. 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 emptynext_cursorends the sync.
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 needGET /users/{user_id}, and neither offboards anyone: terminations always apply at the next hourly sync.
- Support
updated_sinceonGET /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.
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 withstartIndexandcount, 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.
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
- Go to the Inventory page and select + App.
- Select the Custom HRIS / IdP tile.
- Fill in Identifier, Base URL and Signing Secret. See Create a custom app for what each field means.
- Select the Directory Protocol: Opal custom connector API or SCIM 2.0.
- Create the app. Opal checks the connection, then connects the app as an upstream directory.