Delete users from Atlassian Cloud


We have to delete a bunch of users from Atlassian Access. I’ve found the following API:
I know that it says that it’s experimental, but I get the following error, also with non-experimental API calls from this page:

So I am using exactly this script:

const fetch = require('node-fetch');

fetch('', {
  method: 'DELETE',
  headers: {
    'Authorization': `Basic ${Buffer.from(
  .then(response => {
      `Response: ${response.status} ${response.statusText}`
    return response.text();
  .then(text => console.log(text))
  .catch(err => console.error(err));`Preformatted text``

By adding my domain, my e-mail address and my API key (retrieved via Atlassian Access).
But I get the following error:

Response: 401 Unauthorized
Basic authentication with passwords is deprecated.  For more information, see:

I also tried with my API key found via

Anyone ideas?

Thank you in advance.

Hi @veroniqueadriaensen,

I think that the Atlassian Admin APIs require a different type of API token than the one you generate at

The ones you’re probably looking for can be generated at → Your Access instance → Settings → API keys.

Hope this helps :slight_smile:

1 Like

Actually, let me clarify this. To remove users from Access, you’ll have to use one of these APIs, I think:

1 Like


Thank you for your reply. I have first tried this with my admin API key as that seemed obvious to me, but as it didn’t work, I also tried with my id.atlassian API key. Both unfortunately without success.

@tobitheo ,

Thank you. Do you have any idea about the difference between the disable API and the deactivate API? We have to make sure that the user accounts have been deleted so that their email addresses can be reused again.

I do not, sorry. I also don’t know if they fit your use case. Maybe someone from the Access team can answer this here or over at