Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Need to fetch Space admin details of all the spaces in confluence

Hi Team,

We use confluence data center LTS version 7.13.4 and have around 1800 client spaces to manage, we need to gather data for all the spaces like space name, space key and space admin details.

Kindly provide a way either by UI, API or SQL to fetch the above information.




1 answer

0 votes
Andrii Maliuta
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.
Jun 01, 2022

Hi @Jayesh Raghuvanshi  ,

You can use HTML amcro and JS like:

let spaces = []
async function getSpaces() {
let spResp = await fetch('/rest/api/space');
let spacesJson = await spResp.json();
spaces.push(...spacesJson.results )
let nextLink = spacesJson._links_next;
while(nextLink !== undefined) {
let tempResp = await fetch(nextLink);
let tempSpacesJson = await tempResp .json();
spaces.push(...tempResp.results )
let nextLink = tempSpacesJson._links_next;

 With REST API it will be rather slow.


2) You can use JAVA SDK and Groovy Runner  / ScrptRunner to get necessar info (it wll be much faster)


def spaceManager = ComponentAccessor.getCOmponent(SpaceManager.class)
def spaces = spaceManager.getAllSpaces;
spaces.each {
out << it .name
out << it.key#

3) You can create macro with JAVA SDK 

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events