Create an access token for a workspace

Access tokens for a workspace are a premium feature. To learn about the Bitbucket Cloud Premium plan, visit: Bitbucket Cloud Premium.

Access tokens for a workspace are single-purpose access tokens (or passwords) with access to a single workspace with limited permissions (specified at creation time). Use tokens for tasks such as scripting, CI/CD tools, and testing Bitbucket integrations or Marketplace apps while in development.

To create an access token for a workspace:

  1. At bitbucket.org, navigate to the target workspace for the Access Token. This workspace is the only one that the Workspace Access Token can access.

  2. サイドバーで [設定] を選択します。

  3. サイドバーで、[セキュリティ] の下で、[アクセス トークン] を選択します。

  4. Select Create access token.

  5. Give the access token a name, usually related to the app or task that will use the token.

  6. Under Expiry, select No expiry to not set an expiration date, or select Expires on and then select the date picker to set a specific date for your access token to expire. Note: If a workspace admin requires tokens to have an expiry date, the No expiry option will not be available. Also, you will only be able to set an expiration date within the expiry date range set by the workspace admin, for instance, if they make the expiry date range 180 days, then you will need to set an expiry date within that 180-day date range.

  7. Select the permissions the access token needs. For detailed descriptions of each permission, see Workspace-level access token permissions.

  8. Select the Create button. The page will display the Access token created dialog.

  9. 生成されたトークンをコピーして記録するか、アクセス権が必要なアプリに貼り付けます。トークンは一度だけ表示され、あとからは取得できません。ワークスペース アクセス トークンを復元または再利用するのではなく、新しいトークンを作成して、古いトークンを取り消すことをご検討ください。

Access token expiry

For more information on setting up and requiring access token expiry, refer to Require access token expiry.

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。