How to generate an API token or organization API key

How to generate an API token or organization API key

Advanced User Manager uses two completely different credentials. They are not interchangeable, and creating the wrong one is the single most common reason a bulk action fails. Check the table first, then follow only the section you actually need.

What you want to do

Credential you need

Where you create it

What you want to do

Credential you need

Where you create it

Bulk-create Jira users from a CSV file

Personal API token, paired with your Atlassian account email

id.atlassian.com → Security → API tokens

Activate or deactivate Jira accounts

Organization API key, created without scopes

admin.atlassian.com → Settings → API keys

Every operation in the app also requires Jira administrator permission. Creating an organization API key additionally requires that you are an organization admin at admin.atlassian.com. Without Jira admin permission the app shows empty lists rather than an error message, which can look like a bug.

Both credentials are stored by the app in Forge storage and reused for later operations, so you only enter them once. Treat both as secrets and rotate them if they are ever exposed. See Rotating or replacing a credential at the bottom of this page.

1. Personal API token — for bulk-creating Jira users

The personal API token authenticates you as an individual Atlassian user. The app sends it together with your Atlassian account email. It is used for one thing only: bulk-creating Jira users from a CSV file. It will not work for activate/deactivate.

Create the token

  1. Open https://id.atlassian.com/manage-profile/security/api-tokens

  2. Log in with the Atlassian account you use to administer Jira.

  3. Click Create API token.

  4. Enter a label you will recognise later, for example Advanced User Manager, and confirm.

  5. Copy the token immediately and keep it somewhere safe. Atlassian shows the value once; if you close the dialog without copying it you have to create a new token.

These two screenshots show Atlassian's own account security page. Atlassian updates it from time to time, so it may look slightly different for you.

Where you enter it in the app

  1. Open the app's admin console and select Jira users in the left sidebar.

  2. Open the Add users dropdown and choose Bulk-create via CSV. (The Bulk-create Jira users quick action on Overview takes you to the same place.)

  3. Choose your CSV file. If no credentials are stored yet, the dialog then asks for Atlassian account email and API token. Enter both and click Continue.

Bulk-create credentials step with Atlassian account email and API token fields
The credentials step of Bulk-create Jira users.

The email and token are validated against Jira and saved together, so the next CSV import does not ask for them again.

Use the email address of the account that created the token. An API token only works with its own account's email — pairing a token with a colleague's address will fail authentication.

2. Organization API key — for activating and deactivating accounts

The organization API key authenticates against your Atlassian organization, not your personal account. It is used for activating and deactivating Jira accounts. It will not work for bulk user creation, and a personal API token will not work here.

The key must be created under API keys without scopes. The Atlassian user-management API that activate/deactivate calls is not covered by any scope, so a scoped key fails no matter which permission boxes you tick. If the app reports 403 while verifying a key, this is almost always the cause — delete the key and create a new one without scopes.

Create the key

  1. Open https://admin.atlassian.com and select your organization.

  2. Go to Settings → API keys.

  3. Choose the API keys without scopes option and create the key. Do not create it under the scoped-keys option.

  4. Give it a name you will recognise and set an expiry date. Note the date — activate/deactivate stops working the moment the key expires.

  5. Copy the key. As with personal tokens, Atlassian shows the value only once.

Where you enter it in the app

  1. Open Jira users in the left sidebar.

  2. Select the accounts and choose Deactivate in the floating selection bar, or open a row's ... menu and choose Deactivate user / Activate user.

  3. Paste the key into the Organization admin API key field and run the action. The app verifies the key and stores it; from then on the field is labelled Organization admin API key (stored) and comes pre-filled.

Activate users drawer with the stored organization admin API key
The Organization admin API key field in the Activate users drawer, with a key already stored.

The key alone is not enough: accounts must be managed

Activate and deactivate only work on managed accounts — accounts in a domain your organization has verified and claimed under admin.atlassian.com → Directory → Managed accounts. Consumer domains such as gmail.com or outlook.com can never be managed. Before running the action, the app pre-checks the selected accounts and shows an amber panel listing the ones it cannot change.

What you see

What it means

What you see

What it means

403 Caller must be a verified org admin of targeted account

The account is not a managed account of the organization that owns your key. Verify and claim its domain, or the account cannot be changed from here.

403 with a key that you created with scopes

Recreate the key under API keys without scopes.

401 when saving the key

Atlassian rejected the value and it is not stored. You most likely pasted a personal API token from id.atlassian.com instead of an organization API key.

Accounts provisioned by SCIM or Google Workspace

These must be deactivated in the identity provider, not here.

Deactivating an account frees its licensed seat, and the change is reversible — you can reactivate the same account later.

Both credentials are stored by the app

The personal API token (with your account email) and the organization API key are both saved in the app's Forge storage and reused, so you are not asked for them on every operation. Only Jira administrators can use them. Every action performed with them is written to the persistent activity log shown on Overview under Recent activity. More detail: Credentials and data storage.

Rotating or replacing a credential

If either credential is ever pasted into a ticket, chat message or screenshot, treat it as compromised and rotate it straight away.

  1. Revoke the old credential at Atlassian. Personal tokens: id.atlassian.com → Security → API tokens → delete the token. Organization keys: admin.atlassian.com → Settings → API keys → delete the key.

  2. Create a replacement using the relevant section above. An organization key must again be created without scopes.

  3. Enter the new value in the app. For an organization key, open the activate or deactivate drawer, type over the stored key and run the action — it replaces the stored one. A stored personal token has no replacement field in the console; contact support through Documentation & support to have it cleared, then run an import so the dialog asks for the new one.

Importing last-seen data does not need either credential. That feature reads a CSV exported from admin.atlassian.com and is described on the last-seen import page.