The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

List of "Your spaces" via API

Sönke Heins
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 20, 2024

Hello,
using the REST API, is there a way to get the spaces which are listed under "Your spaces" in confluence for a specified user using the API and a user ID?

Right now I'm thinking of a combination of using:

"https://{your-domain}/wiki/api/v2/spaces"

fetching all spaces in my domain and then using:

"https://{your-domain}/wiki/api/v2/spaces/{id}/permissions"

and filter out the response body.
But this won't give me the "Your spaces", right?
Atleast if I try to do these steps with my own user ID the response is empty but I definitely have some spaces with permissions under "Your spaces".

Is what I'm trying to do even possible with the REST API v2?

Thanks in advance!

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events