Forums

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

With confluence 7.12.3, we are not able to add permissions for groups to space using java API

Satnam singh aujla August 16, 2021

We used 
SpacePermission permissionView = SpacePermission.createGroupSpacePermission(SpacePermission.VIEWSPACE_PERMISSION, space, groupName);
space.addPermission(permissionView);

1 answer

0 votes
Dominic Lagger
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 19, 2021

Hi @Satnam singh aujla 

I just had a look into the API.

The enum you use is deprecated:

https://docs.atlassian.com/ConfluenceServer/javadoc/7.12.4/com/atlassian/confluence/it/SpacePermission.html 

Perhaps this could be the problem.

If not, please reach out to the atlassian developer community. They will help you more :) 

Regards, Dominic

Satnam singh aujla August 24, 2021

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";

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events