Forums

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

How do I use an Oauth 2.0 token to fetch JIRA data on behalf of the user?

AKhazane
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!
June 25, 2023

I'm having trouble successfully hitting the Jira Software Cloud API to fetch data for a user w/ their Oauth 2.0 token.

I am able to successfully get back info from `https://api.atlassian.com/oauth/token/accessible-resources` using the user's Oauth token, which gives me their jira id, url, org name, token scopes, and avatar url. Their token scope is "read:jira-work" and "write:jira-work."

However, I keep getting a `Client must be authenticated to access this resource` every time I try to hit their JIRA url (e.g https://company-name.atlassian.net) with the same token. Can anyone help me figure out what the issue is? Am I hitting the wrong endpoint for fetching user data?

 

0 answers

Suggest an answer

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

Atlassian Community Events