Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • acli commands keeps returning "Error: unauthorized: use 'acli [product] auth login' to authenticate"

acli commands keeps returning "Error: unauthorized: use 'acli [product] auth login' to authenticate"

James Su
March 29, 2026

Any commands to use the API returns the error:

acli jira workitem search --jql 'project = OA AND assignee = currentUser()'

 

I've tried the following methods and neither of them works:

1. re-auth

acli jira auth login --web
# auth on web
# press enter in terminal

acli jira auth status
# returns ✓ Authenticated and the correct jira account information

 

2. Delete ~/.config/acli and re-auth

2 answers

1 accepted

0 votes
Answer accepted
James Su
March 30, 2026

Set API token works.

0 votes
Ajay _view26_
Community Champion
March 29, 2026

Hi @James Su 

Welcome to the community!

This sounds like the auth is valid in ACLI, but not for the specific product/context the command is trying to use.

A couple of things I would check first:

1. Make sure the Jira product auth is the one that is actually active

acli jira auth status

If needed, run:


acli jira auth login --web

2. Confirm the site/account you authenticated against is the same site the command is targeting.You can be authenticated in general, but still not have access to the Jira site/project the command is querying.

3. Check whether the account has the right Jira product access and project permissions
If the account can authenticate but does not have Jira access on that site, API-style commands can still fail.

 

James Su
March 29, 2026

Please see my methods, I confirmed all the information is correct, and all commands worked last week, but stopped working today.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events