Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

One of the user is not able to access Jira project using recent API Token provided.

Vibha Parmaj June 15, 2023

The Admin created a new API Token for the developer to access a project using java code and perform actions for the same. This seems to be working for different users but just one user cannot access through her code, though all access levels provided and are similar to other developers. Why is this happening?

2 answers

1 vote
Nanda
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 22, 2023

You say the Admin created the token for the user which makes me suspect this is an API key which is created in admin.atlassian.com, not an API token as mentioned in the document

The user should be able to create his/her own API token from https://id.atlassian.com/manage-profile/security/api-tokens. to use in their Script.

0 votes
Deepak Jain
Community Champion
June 15, 2023

Hi @Vibha Parmaj 

Thank you so much for writing in Atlassian Community !!

If other user is able to access the project from Rest API, then there is some difference in the permission between your user and that other user. Request you to try below things for further troubleshoot:

  1. Ask your user to login from the browser and see if he is able to access that project.
  2. Cross check the permissions of both users, specially check if users are having same project roles, groups in that project.
  3. See what action (Edit, delete, transition, move, copy issue) your user is performing through rest api, and check if user is having permission to perform that action. 

Hope this helps you !!

Vibha Parmaj June 15, 2023

Hi @Deepak Jain 

Thank you for your response!

As you suggested, yes the user can login and access the project from broswer.

Also the access for both the developers is similar.

The user's code is only trying to fetch the project and number of issues within, the error message is {"errorMessages":["The value \u0027FEI\u0027 does not exist for the field \u0027project\u0027."],"warningMessages":[]}, but with other user, same API token, same code and same access permission is able to fetch the project and it's issues successfully. 

FYI: The project is a Team-Managed project 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events