Overview
Torii integrates with SonarCloud and syncs:
| User Fields | License Types |
|---|---|
| Name, email (when available), login, last connection date, role (Admin / Member) | SonarCloud |
- You can constantly stay updated with application information from our Integrations Page >> Integration Capabilities button >> Integration Capabilities table.
Requirements
To connect this integration, we require the following:
Accounts & Permissions
- A SonarCloud (SonarQube Cloud) organization on any plan (Free, Team or Enterprise).
- A user with the Administer permission (organization admin) on that organization. Torii needs this permission to list the organization's members and their admin role.
Required keys
- Access Token - a personal access token of the organization admin.
- Organization Key - the key that identifies your organization in SonarCloud.
- Region - the SonarCloud region your organization is hosted in (EU or US).
How to Generate the Required Values
Step 1: Generate an Access Token
- Sign in to SonarCloud as a user who is an administrator of your organization.
- Open your account menu in the top right corner and select My account > Access tokens. SonarCloud shows the Personal Tokens tab only to users who signed in with GitHub.
- Under Generate Tokens, enter a token name (for example, Torii).
- Choose an expiration period (7, 30, 60 or 90 days, or a custom date of up to one year).
- Click Generate Token and copy the token.
Important
The token is shown only once. Copy it before leaving the page. Tokens expire, so generate a new token and update the connection in Torii before the expiration date.
Step 2: Find your Organization Key
- In SonarCloud, open your organization.
- Copy the organization key from the organization URL (the part after /organizations/), or from the organization settings.
Step 3: Identify your Region
| Address you use to sign in to SonarCloud | Region to select in Torii |
|---|---|
| sonarcloud.io | EU (sonarcloud.io) |
| sonarqube.us | US (sonarqube.us) |
How to Connect the Integration
- Go to the Integrations page in Torii.
- Search for SonarCloud and click Connect.
- Enter the Access Token and Organization Key, and select your Region.
- Click Connect.
Actions
- Change SonarCloud organization admin role - grants or removes the organization admin role for a user. It applies only to admin permission granted directly to the user.
For any further questions, please contact Torii Support.