Overview
Torii integrates with Sourcegraph and syncs:
| User Fields | License Types |
|---|---|
| Name, Email, Role, Status, Creation date, Last used date | Sourcegraph |
- You can constantly stay updated with application information from our Integrations Page >> Integration Capabilities button >> Integration Capabilities table.
Requirements
Accounts & Permissions
To connect this integration, we require the following:
- A Sourcegraph Enterprise plan. Torii connects to your own Sourcegraph instance, self-hosted or Sourcegraph Cloud.
- A Sourcegraph site admin who can create an access token. Listing all users and running the workflow actions (Create user, Change user role, Delete user) require site admin.
Required keys
-
Instance URL: the address of your Sourcegraph instance, for example
https://sourcegraph.example.com(no trailing slash or path). - Access Token: an access token of a site admin user.
How to Generate the Required Values
Step 1: Create an access token
- Sign in to your Sourcegraph instance as a site admin.
- Click your avatar at the top right of the page.
- Select Settings from the dropdown menu.
- Select Access tokens from the sidebar menu.
- Click Generate new token.
- Enter a description, for example
Torii. Keep the defaultuser:allscope. - Select how long the access token should remain valid.
- Click Generate token and copy the token.
Important
Sourcegraph shows the access token only once. Copy it before you close the page. When the token expires, create a new one and reconnect the integration.
How to Connect the Integration
- Go to the Integrations page in Torii.
- Search for Sourcegraph and click Connect.
- Enter your Instance URL.
- Paste the token into the Access Token field.
- Click Connect.
Actions
- Create user creates a new Sourcegraph user with the username you enter and the user's email.
- Change Sourcegraph user role makes a user a site admin, or removes site admin.
- Delete user deletes a Sourcegraph user. Sourcegraph keeps the deleted account's record (soft delete).
These actions require a site admin access token.
Q&A
Q: Why do some users show as "Locked"?
A: Sourcegraph locks an account for a short time after too many failed sign-in attempts. The lock ends on its own, so Torii keeps these users active.
For any further questions, please contact Torii Support.