We used
SpacePermission permissionView = SpacePermission.createGroupSpacePermission(SpacePermission.VIEWSPACE_PERMISSION, space, groupName);
space.addPermission(permissionView);
I just had a look into the API.
The enum you use is deprecated:
Perhaps this could be the problem.
If not, please reach out to the atlassian developer community. They will help you more :)
Regards, Dominic
hello, I am using
public class com.atlassian.confluence.security.SpacePermission
in this class we have
public static final java.lang.String VIEWSPACE_PERMISSION = "VIEWSPACE";
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.