Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to revoke some permission from user in a space through java

I want to revoke some permission from a user in a space but not able to find a way that works .

1. when iam trying with removeallpermission then all the access of user is revoked , sometime the user is deleted from his own space .

2)I have tried 

SpacePermission spacePermission = SpacePermission.createUserSpacePermission(SpacePermission.EXPORT_SPACE_PERMISSION,space,user);
spacePermissionManager.removePermission(spacePermission); 

but this is also not working and making no change in permissions.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you