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.
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.