Forums

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

401 Unauthorized : You are not authenticated Authentication required to perform this operation error

Navin Karunanithi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 17, 2025

There are the endpoints which when I try to access gives me the above error. 
I am testing out if the granular scopes that I have added for the application are working as the previous ones were not. I have created an app and using the Atlassian developer console to get the authorization URL.

https://auth.atlassian.com/authorize?audience=api.atlassian.com&client_id=XXXXXXXXXXXXXXXXXXX&scope=read%3Aattachment%3Ajira%20read%3Aissue%3Ajira%20read%3Agroup%3Ajira%20read%3Aboard-scope%3Ajira-software%20read%3Acomment%3Ajira%20read%3Aissue-type%3Ajira%20read%3Aproject.component%3Ajira%20read%3Aproject-role%3Ajira%20read%3Aproject%3Ajira%20read%3Aproject-version%3Ajira%20read%3Asprint%3Ajira-software%20read%3Auser%3Ajira%20read%3Aissue-worklog%3Ajira%20read%3Aapplication-role%3Ajira%20read%3...

using this URL I am able to get the authorization code and in turn able to get the access token with the required scopes, but when I try to access these below endpoints I get the 401 Unauthorized : You are not authenticated Authentication required to perform this operation error. I have admin access to the sandbox which I am using to test these endpoints, and I am using postman to test it.
I have set the access token as the bearer token.

/rest/agile/1.0/board
/rest/api/2/role
/rest/api/2/application-properties/advanced-settings
/rest/api/2/applicationrole
/rest/api/2/auditing/record
/rest/api/2/configuration
/rest/agile/1.0/board/{boardId}/epic
/rest/api/2/group
/rest/api/2/settings/columns
/rest/api/2/priority
/rest/api/2/resolution
/rest/api/2/projectCategory
/rest/api/2/issuesecurityschemes
/rest/api/2/configuration/timetracking/list
/rest/api/2/workflow
/rest/api/2/statuscategory
/rest/api/2/status

{{protocol}}://{{host}}/{{basePath}}rest/api/2/___________

protocol: https
host: sandbox.atlassian.net
basePath: I am currently setting this as jira, but it gives me 404, so I have removed this field and have used it in this format

{{protocol}}://{{host}}/rest/api/2/_______

I have used the above request format for the below endpoint and I am able to get responses with 200 OK.

/rest/api/2/issuetype
/rest/api/2/project
/rest/api/2/dashboard
/rest/api/2/filter/favourite
/rest/api/2/field
/rest/api/2/field
/rest/api/2/issueLinkType
/rest/api/2/permissions
/rest/api/2/project/type

I would really appreciate it if someone can point out what I am missing or if there is a better way to make this work. Thank you for time.

 

1 answer

2 votes
Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 17, 2025

@Navin Karunanithi  Welcome to the community!

If you are using the postman and sending the GET/POST request and added the basic authorization then i thing you just need to provide the your email address as a username and password as a token. So can you check without the Bearer once

Navin Karunanithi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 18, 2025

@Yogesh MudeThank you for your reply. I want to check if the access token generated with updated granular scopes is able to access the objects. Using basic authentication via username and password would not fit my use case.

Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 18, 2025

Okay, Can you check with/without scope token and assuming you are using Berer Token in authorization, if so, then try convering token to base64 encoding and check.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events