Forums

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

Asking for Space/Page list of users who can view is not working

Erko Knoll May 11, 2018

Hi,

 

I'm trying to get the list of users who can view the space or a page using Java API, but what I'm getting back is an empty list.

 

For the Space I'm using SpacePermissionsManager.getUsersWithPermissions(space) and for the Page I'm using ContentPermissionManager.getInheritedContentUserPermissions(page) and both of them are returning empty list of users. Is it something related to my permissions, though I'm logged in as admin? Or am I using the wrong APIs to get the list of users who can view the space/page?

Confluence version: 5.9.10.

1 answer

0 votes
Erko Knoll May 11, 2018

I managed to find a space where the API returns a single user for the space. This user happens to be the admin of the space, but the weird thing is that the space has more admins, when looking at page details. So I'm not sure why the API only returns a single admin. As for other pages, could it be true that the API returns an empty set when the space is view-able by anyone?

As for getting users for single page (getInheritedContentUserPermissions), I even tried setting page restrictions but the API still returns 0 results.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events