Forums

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

I need to get the permissions for some conflunece spaces using external scripts

Peter Newton August 31, 2021

Hi,

I am running a script to get all the spaces from our confluence server, then I filter them according to some conditions.

For selected spaces, I need to get their permissions.

I checked the documentation but I can only see some POST actions that are supported. I need to GET

Anyone can help?

Thank you,

Bogdan

1 answer

1 accepted

0 votes
Answer accepted
Alexis Robert
Community Champion
September 1, 2021

Hi @Peter Newton , 

 

looks like this is not possible with Confluence Server API. When calling the REST API endpoint /api/space, you can see that this options does not exist :

 

 

{ "id":98306, 

"key":"TEST",

"name":"Test",

"type":"global",

"_links": { "webui":"/display/TEST", "collection":"/rest/api/space",

"base":"xxx:8090",

"context":"",

"self":"xxx:8090/rest/api/space/TEST"},

"_expandable": { "metadata":"", "icon":"", "description":"", "homepage":"/rest/api/content/65576" }

}

 


However, some users have managed to get this information with the Java API but this would basically require to write a plugin for your server instance.

This is an interesting thread on the Developer community that you can have a look at : https://community.developer.atlassian.com/t/rest-api-space-qywh-expand-permissions/13092/11

 

Let me know if this helps, 

 

--Alexis

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events