Is there a way to get all permissions for a given space through the XML-RPC API?

In the XML-RPC API, there's a "getPermissions" method

From https://developer.atlassian.com/display/CONFDEV/Remote+Confluence+Methods

Vector<String> getPermissions(String token, String spaceKey) - Returns a Vector of Strings representing the permissions the current user has for this space (a list of "view", "modify", "comment" and / or "admin").

But those four don't map 1-to-1 with the permissions you can set for groups or users on the Space Permissions page. Is there a way to get ALL the permissions a given user has on a given space?

For example, is there a way to check if anonymous users on a certain space have the "EDITBLOG" permission set?

With other API methods (removeAnonymousPermissionFromSpace and addAnonymousPermissionsToSpace) I'm able to add or remove anonymous permissions, but I don't see a way to check what the current anonymous permissions are at the same level of detail. If "comment" is returned by getPermissions, I know the user can post comments ... but if anonymous users can post blog entried ("EDITBLOG") nothing extra is returned in getPermissions (only "view").

1 answer

How to get all space permissions shows a way to use the Confluence CLI to get this type of information.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

182 views 0 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you