Forums

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

Getting Empty Array When Calling /accessible-resources Despite Connected Cloud Resource

amnon_ashkenazy
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!
October 16, 2025

 

Description:

I am trying to fetch the list of accessible resources (cloud instances) using the Atlassian OAuth 2.0 (3LO) flow with client credentials. However, even though my account is already connected to a Jira Cloud site, the /accessible-resources endpoint returns an empty array [].


Here’s the Python code I’m using:

 

```
oauth = OAuth2Session(client=BackendApplicationClient(client_id=client_id, client_secret=client_secret))

try:
res = oauth.fetch_token(
client_id=client_id,
client_secret=client_secret,
include_client_id=True,
scope=['read:jira-work', 'read:jira-user', 'write:jira-work', 'manage:jira-configuration'],
)

access_token = res.get('access_token')
if not access_token:
print('No access token received')
return

import jwt

# Decode without verifying signature
decoded = jwt.decode(access_token, options={'verify_signature': False})

print(decoded)

import requests

headers = {'Authorization': f'Bearer {access_token}', 'Accept': 'application/json'}
response = requests.get('https://api.atlassian.com/oauth/token/accessible-resources', headers=headers)
print(response.json())
```


What Happens:

1 answer

0 votes
Marc - Devoteam
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.
October 16, 2025

Hi @amnon_ashkenazy 

Welcome to the community.

This call is for developing an app, is your question about client_id an an app?

https://developer.atlassian.com/cloud/confluence/oauth-2-3lo-apps/#get-list-of-resources 

This endpoint can't be used by a user API token.

Suggest an answer

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

Atlassian Community Events