About Opal Security
Opal Security is an access management platform for governing user access to groups, resources, and applications. Serval connects to Opal with an API token created by an Opal administrator, and workflows can then look up a user’s current access, add or remove group membership, and submit, review, and approve access requests. Production (api.opal.dev) and sandbox (sandbox.opal.dev) connect as separate instances, each identified by its API domain. Authentication: API token (bearer) - you provide your Opal API Domain and an API Token. Data sync: On demand only. There is no background sync; Serval calls the Opal API live each time a workflow runs.What the Opal Security integration enables
Get your credentials
You need an API token created by an Opal administrator. The token needs read access to users, groups, and resources for the connection checks to pass, and write or provisioning permission if you plan to use the add/remove-user or access-request workflows. See the Opal API reference for details on Opal’s API tokens.Open the API Tokens settings in Opal
Create a token
Copy the token immediately
Note your API domain
Connect in Serval
Open the Opal Security connect form
Enter your API Domain (required)
Enter your API Token (required)
Save and confirm
Verifying the connection
The connection ships four health checks that make live calls to Opal:- Test Opal Connection - verifies Serval can authenticate with Opal using your token. Success: “Successfully authenticated with Opal Security”. Failure: “Unable to connect to Opal Security. Please verify your API token is valid and has the necessary permissions.”
- List Opal Users - verifies the token can read user data by listing a small sample of users. Success: “Successfully listed users from Opal Security (sample size: [number])”. Failure: “Unable to list users from Opal Security. Please verify the API token has permission to read user data.”
- List Opal Groups - verifies the token can read group data by listing a small sample of groups. Success: “Successfully listed groups from Opal Security (sample size: [number])”. Failure: “Unable to list groups from Opal Security. Please verify the API token has permission to read group data.”
- List Opal Resources - verifies the token can read resource data by listing resources. Success: “Successfully listed resources from Opal Security (sample size: [number])”. Failure: “Unable to list resources from Opal Security. Please verify the API token has permission to read resource data.”
Gotchas and troubleshooting
Editing or rotating the token: always paste the complete new value
Editing or rotating the token: always paste the complete new value
Only single-label Opal domains are accepted
Only single-label Opal domains are accepted
Do not include a version path in the API Domain
Do not include a version path in the API Domain
Token problems appear as health-check failures, not connect errors
Token problems appear as health-check failures, not connect errors
Opal shows the API token only once
Opal shows the API token only once
Provisioning workflows require approval by default
Provisioning workflows require approval by default
Need help? Contact support@serval.com for assistance with your Opal Security integration.

