Deactivate/Activate Managed-Accounts

Deactivate/Activate Managed-Accounts

Deactivating a user removes their product access and frees the billable seat they occupy. Activating puts the access and the seat back. Both actions are reversible, and both are performed from Manage → Jira users in the Advanced User Manager console.

Atlassian only allows this on managed accounts, and only with an organization API key. This page explains both requirements, what the app does with your key, and what each refusal from Atlassian actually means.

Before you start you need: Jira administrator permission on this site; an organization admin role at admin.atlassian.com; and the accounts you want to change must be managed accounts of that organization.

The credential you need

Activation changes go through the Atlassian organization user-management API, which accepts only an organization API key created at admin.atlassian.com. A personal API token from id.atlassian.com will not work here — that other token is used by a different feature of this app (bulk-creating Jira users from CSV) and the two are not interchangeable.

The key must be created under “API keys without scopes”. The Atlassian user-management API is not covered by any scope, so a scoped key fails no matter which boxes you tick. If you already made a scoped key, delete it and create an unscoped one — scopes cannot be removed after creation.

Create the organization API key

  1. Go to admin.atlassian.com and open your organization.

  2. Go to Settings → API keys.

  3. Choose API keys without scopes, then create the key.

  4. Give it a name and an expiry date, then copy the key value. Atlassian shows it once.

  5. In Advanced User Manager, paste it into the Organization admin API key field in the Deactivate users or Activate users drawer.

Atlassian’s own reference is here: Manage an organization with the admin APIs.

What the app does with the key

The key is stored by the app in Forge storage and reused for later activation and deactivation runs, so you do not have to paste it again every time. When a key is already stored, the field is labelled Organization admin API key (stored) and comes pre-filled; type over it to replace it.

A new key is checked when you run the action:

  • If Atlassian rejects it outright (401), the app says Atlassian rejected that key (401). Use an organization API key from admin.atlassian.com, not a personal API token. Nothing is stored and nothing runs.

  • If the check returns 403, the key is saved with a warning: if deactivation then fails, the key was probably created with scopes.

  • If the key cannot be verified for another reason, it is saved with the warning Key saved, but it could not be verified.

Because the key is stored and reused, treat it like any other long-lived secret. It grants organization-level user administration. Rotate it at admin.atlassian.com if it is ever exposed, or when the person who created it leaves, and set an expiry date when you create it. Revoking the key in Atlassian immediately stops this app from changing activation until a new key is entered.

Only managed accounts can be changed

An account is managed when its email domain has been verified by your organization and the account has been claimed. Both steps are required.

To check whether a specific account qualifies, open admin.atlassian.com → Directory → Managed accounts and search for the email address. If it is not listed there, its activation cannot be changed — not by this app and not by any API key.

Accounts on consumer domains — gmail.com, outlook.com, yahoo.com and similar — can never be managed, because nobody can verify ownership of those domains. Contractors and customers using personal email addresses will always fall into this category.

Background reading: What are managed accounts?

Deactivate users

  1. Open the Advanced User Manager console and select Jira users under MANAGE in the left sidebar.

  2. Find the people you want with the Search by name or email box. The status control defaults to Active, which is what you want here.

  3. Tick the rows you want. A floating selection bar appears at the bottom of the screen. (For one person you can instead open the row's … menu and choose Deactivate user.)

  4. Choose Deactivate. A drawer titled Deactivate users opens.

  5. Review the confirmation text and the pre-flight check (below), enter or confirm the Organization admin API key, then click Deactivate n.

Deactivate users drawer with stored key and an amber panel for one unmanaged account
Deactivate users: the stored key is pre-filled, and the amber panel names the one account the organization does not manage.

Activate users

Activation is a per-user action:

  1. On Jira users, switch the status control to Inactive (or All) so deactivated accounts are shown.

  2. Open the … menu at the end of the user's row and choose Activate user.

  3. In the Activate users drawer, confirm the key and click Activate 1.

Row menu on an inactive user showing Activate user
On an inactive account the row menu offers Activate user.
Activate users drawer for one user with the stored key
The Activate users drawer.

Every run is written to the activity log and shown under Recent activity on the Overview screen.

The pre-flight check

As soon as the drawer opens, the app asks Atlassian which of the selected accounts (up to the first 50) your stored key is actually allowed to change. Anything it cannot change is listed in an amber panel above the key field, with the affected email addresses shown as chips.

  • If only some accounts are blocked, the panel reads “n of m will be skipped”. You can still run the action; the listed accounts will not change and are reported as failures in the result. Deselect them first for a clean run.

  • If every selected account is blocked, the panel says Atlassian will not let you change them and the apply button is disabled — there is nothing the run could do.

The usual cause is the same in both cases: those accounts are not managed accounts of the organization that owns your key.

Seats and reversibility

Deactivation frees the licensed seat and the user loses product access until reactivated. Nothing is deleted — the account, its issues, comments and history all remain. Reactivating restores access, and the user counts toward your license again.

When Atlassian refuses

If nothing succeeds, the drawer stays open and shows a red “Atlassian refused this change” panel with the reason, rather than closing behind a toast. If only some rows fail, the message reads N succeeded, M failed followed by Atlassian's reason for the first failure. Here is what each refusal means.

What you see

What it means and what to do

What you see

What it means and what to do

403 — “Caller must be a verified org admin of targeted account”

This is about the target account, not your key. The organization behind your key has not claimed that account. Check admin.atlassian.com → Directory → Managed accounts: the account must appear there, which needs its email domain verified and the account claimed. If you belong to more than one organization, make sure the key belongs to the one that claimed this account.

403 on every account, with a scoped key

Your key was created with scopes. The user-management API is not covered by any scope, so it will always be refused. Delete the key and create a new one under API keys without scopes.

401 — key rejected

The key is not a valid organization API key. Most often a personal API token from id.atlassian.com was pasted by mistake, or the key has expired or been revoked. Create a fresh organization key at admin.atlassian.com → Settings → API keys.

404 — account not found

That account is not managed by your organization, so its activation cannot be changed. Same remedy as the 403 above.

SCIM-provisioned account

The account is provisioned from your identity provider via SCIM. It must be deactivated in the identity provider — no Atlassian API key can change it from here.

Google Workspace-synced account

The account is synced from Google Workspace. Deactivate it in Google; the change then flows back to Atlassian.

An account that is already in the requested state counts as a success, so re-running a partly finished batch is safe.

Every operation in this app requires Jira administrator permission. A non-admin sees empty lists rather than an error message, which can easily be mistaken for a bug. If a screen is unexpectedly blank, check the signed-in account’s permissions first.