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. bitbucket.org で、アクセス トークンの対象となるワークスペースに移動します。このワークスペースは、ワークスペース アクセス トークンがアクセスできる唯一のワークスペースです。

  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 the date picker and select or input a specific date on which your access token will expire. The expiry date will need to be within the date range set by the workspace admin. Note: If a workspace admin does not require tokens to have an expiry date, the No expiry option will be available. Select the No expiry radio button to create your token with no expiry date, or you can select the Expires on radio button to set an expiry date for your token.

  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.

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

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