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?
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.
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:
Hope this helps you !!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.