Skip to content

Personal access tokens

A personal access token lets a script or command-line tool act as the signed-in user without a browser session. The token is limited to the modules chosen when it is generated. Each user manages only their own tokens.

Open personal access tokens

  1. In the top-right corner of the portal, click the profile avatar icon.

  2. In the menu, select Personal access tokens.

    Avatar menu with Personal access tokens

    Figure 7. Avatar menu with Personal access tokens

  3. The Personal Access Tokens page opens.

    Personal Access Tokens page

    Figure 8. Personal Access Tokens page

    Note

    • The list shows active tokens.
    • "Search in all columns" field lets you filter the list.
    • Columns available are Actions, Name, Modules, Created, Expires, and Last used.
    • Last used is Never until the token has been used.
    • Name, modules, and validity cannot be edited after the token is generated.

Generate a token

  1. Click Generate Token.

  2. The Generate Personal Access Token dialog opens. Name and Modules are empty. Validity is by-default set to 30 days.

    Generate Personal Access Token dialog before Name and Modules are entered

    Figure 9. Generate Personal Access Token dialog before Name and Modules are entered

  3. Enter a Name (required, up to 255 characters).

  4. Select one or more Modules.

    • Only modules that the signed-in user can access are listed in the dropdown. The form shows this hint: "The token can access only the selected modules. This cannot be changed later."
  5. Select a Validity period.

    • The choices shown are 30 days, 90 days, and 365 days.

    Generate Personal Access Token dialog ready to generate

    Figure 10. Generate Personal Access Token dialog ready to generate

  6. Click Generate Token.

    • When no modules are available, Generate Token stays disabled and the page shows: "No modules are available for a personal access token. Ask an administrator to grant module access."

    Important

    Generation is refused when the active-token limit is reached, or when an active token already uses the same name. The message is: "The active token limit was reached or an active token already uses this name." A user can have up to 10 active tokens. Revoked and expired tokens do not count toward that limit, and their names can be used again.

Copy the token

  1. The Personal Access Token Generated dialog opens next.

    • The dialog states: "Copy this token now. For your security it is shown only once and cannot be retrieved again."

    • The token value is masked. The eye icon reveals the token, and Copy places it on the clipboard. Copy works while the value is still masked. The dialog also shows the token name, expiry, and modules.

    • Click Done to close the dialog. The token cannot be displayed again. If it was not copied, revoke that token and generate a new one.

Personal access token shown once

Figure 11. Personal access token shown once

Important

Granting access to another module later does not add that module to an existing token. If access to a selected module is removed, the token can no longer be used for that module. Generate a new token when the module list needs to change.

Revoke a token

  1. In the Actions column for that token, click Revoke token (trash icon).

  2. Confirm in the dialog box that the message names the token that you want to revoke.

    Revoke personal access token confirmation

    Figure 12. Revoke personal access token confirmation

  3. Click Revoke token.

    • The token is removed from the list. It cannot be used to sign in again. A script that already signed in with it can continue only until that sign-in expires. Other tokens for the same user would stay active as per their validity duration.