- Allow users to request just-in-time access to resources on your tailnet from the web and Slack
- Set the right resource owners to delegate approvals to those with the most context
- Configure day-one access to Tailscale resources with groups from your identity provider
- Automatically escalate and revoke privileged resource access based on on-call schedules, e.g., PagerDuty or Opsgenie
Supported resources
Requirements
Before you begin this guide, you’ll need a tailnet and an Opal account. To learn how to create a tailnet, see the Tailscale quickstart.Configuration steps
To use Opal with Tailscale:-
Generate an OAuth client from the OAuth clients page of the admin console and give the policy file the
writescope.- Using an API key instead of an OAuth client is deprecated. They are still supported but not recommended, as they have a maximum expiry of 90 days and must be refreshed manually.
- To upgrade a Tailscale app that uses an API key, find the app in Inventory, then select Setup > Edit. Add the OAuth credentials and remove the API key. After you save the settings, check the App validations section to confirm your app authenticated correctly. No further action is needed after you add valid credentials.
- In Opal, go to Inventory, click on the + App icon, and select Tailscale. Set the following fields.
- Import Tailscale resources to Opal by selecting Import assets on the app’s Assets tab.


Tailscale user roles
If you self-host Opal, Tailscale user roles need version
1.1268.0 or later.- Admin
- IT admin
- Network admin
- Billing admin
- Auditor
How role grants work
A Tailscale user holds exactly one role, so:- Granting a role to someone who holds another one switches them to the new role.
- Revoking a role, or letting a time-bound grant expire, sets the user back to the role Opal still grants them on this app, or to Member if Opal grants none. For example, a user who holds Admin in Opal and is given Network admin for an hour returns to Admin when it expires.
- While a user holds a time-bound role, Opal keeps their standing role grant, even though Tailscale shows only the time-bound role.
- Revoking a role from someone who no longer holds it changes nothing. Opal never removes a user from the tailnet.
Set up user roles
Add these scopes to the OAuth client the app uses, alongside the policy file scope from step 1:
If your OAuth client doesn’t have them, generate a new one with these scopes, then in Opal go to Setup > Edit and replace the client ID and secret. The App validations section shows Opal can read Tailscale users when the scopes are in place.
Then import the roles on the app’s Assets tab with Import assets.