Forums

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

GET /2.0/user/workspaces returns empty results with OAuth 2.0 Client Credentials grant type

riyapulusuganti
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!
May 14, 2026

The GET /2.0/user/workspaces endpoint returns 200 OK but with empty values when using OAuth 2.0 Client Credentials grant type (grant_type=client_credentials).

The same endpoint works correctly with Authorization Code grant and Basic Auth — returns all workspaces as expected.

Setup:

  • OAuth consumer is created at the workspace level (Workspace Settings → OAuth consumers)
  • User is a workspace admin
  • All scopes are enabled on the OAuth consumer

Background:We were previously using GET /2.0/workspaces with Client Credentials and it was returning all workspaces and repositories properly. After that endpoint was deprecated as part of the cross-workspace API sunset (April 14, 2026), we migrated to the recommended replacement GET /2.0/user/workspaces. However, this replacement does not work with Client Credentials grant type.

Questions:

  • Is GET /user/workspaces expected to work with Client Credentials?
  • If not, what is the recommended alternative for listing workspaces in server-to-server integrations where user interaction is not feasible?

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 17, 2026

Hi @riyapulusuganti

Welcome to the community.

Could you confirm if you're using consumer keys from a user account or from a workspace settings?

Regards,
Mark C

riyapulusuganti
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!
May 18, 2026

Hi @Mark C ,

We are using from workpsace settings.

Regards,

Riya

Suggest an answer

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

Atlassian Community Events