Skip to main content
Personal Access Tokens auto-expire 60 days from last use (or from creation if never used) — there is no permanent option. The token is renewed on every use, so an actively-used connector keeps a rolling 60-day window. For long-lived production team automation, SonarQube Cloud recommends Scoped Organization Tokens (created by org admins, not tied to a user account) — but those are an upgraded-plan feature. User tokens also inherit ALL permissions of the issuing user; create a dedicated service-account user for restricted scope.

Generate a Personal Access Token

Personal Access Tokens are managed from the Access Tokens page of your SonarQube Cloud account.

1

Sign in to SonarQube Cloud

Sign in to SonarQube Cloud (or sonarqube.us for the US region).

2

Open the Access Tokens page

Click your avatar (top-right) → My account, then choose Access Tokens from the left sidebar.

3

Generate the token

Under Generate Tokens, enter a name and click Generate Token.

  • Name — human-readable identifier (e.g. stackone-connector)
  • Click Generate Token.
  • Copy the token value immediately — it is only displayed once. Tokens are 40-character hex strings with no prefix (e.g. 0eaecdfe61a6b19cbbdfee4f560e51ab476b01af).
  • Scheduled expiry is automatic: 60 days from creation, then 60 days from last use. Use the token at least once every 60 days to keep it alive — or rotate.

Find your Organization Key

Almost every Web API endpoint requires your organization key.

1

Locate the organization slug

In SonarQube Cloud, the organization key is the slug in the URL when viewing your workspace.

  • Look at the URL: https://sonarcloud.io/organizations/<slug> — the segment after /organizations/ is your organization key.
  • Or open My account → Organizations and copy the Key column for the organization you want to integrate.

Linking the Account from the Hub

1

Navigate to the Hub

Use one of the three Linking Account Methods to access the Hub.
2

Fill out the fields

Fill out the following fields using details from your provider:
  • Personal Access Token
  • Organization Key
  • Region (Optional)
3

Connect

  • Click Connect
  • If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
  • Once authorization is successful, you will see a confirmation popup

If the account linking is successful, you will see the newly linked account in your Accounts page.