above...
Hi @Olexandr Polinkevych,
You can use the following api to check whether a user has personal space permission
SpacePermissionManager.hasPermission(SpacePermission.PERSONAL_SPACE_PERMISSION, null, <confluence user>)
Here the second argument is space. As personal space is a global permission, space is null indicating the global permission.
Reference: https://docs.atlassian.com/atlassian-confluence/6.6.0/com/atlassian/confluence/security/SpacePermissionManager.html#hasAllPermissions-java.util.List-com.atlassian.confluence.spaces.Space-com.atlassian.user.User-
and
https://docs.atlassian.com/atlassian-confluence/6.6.0/com/atlassian/confluence/security/SpacePermission.html#PERSONAL_SPACE_PERMISSION
Thanks,
Santwana
It looks like you're new here. Sign in or register to get started.