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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.