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

Confluence - Set space permissions via API

I am currently creating a new space in confluence with REST. From what I have read it is not possible to add space permissions that way. Therefore I am now trying to to use the Java API. However I can't figure out how I am supposed to add the permissions there. All the classes I have found can only read the permissions (SpaceManager, SpacePermissionManagerInternal, SpacePermissionManager, Space)

I want to know if there is any way to give a User a permission in a Confluence Space.

1 answer

0 votes
DPK_J Community Leader Aug 28, 2019

I guess you can use - ContentPermissionManager

DPK_J Community Leader Aug 28, 2019

@Emanuel Konringer  Also look at this code base from Atlassian Copy Space Plugin, it will give you some ideas - https://bitbucket.org/atlassianlabs/confluence-copy-space-plugin/src/master/plugin/src/main/java/com/atlassian/confluence/plugin/copyspace/DefaultCopySpaceManager.java

Specially copySpacePermissions method.

Unfortunatly I can't use this class - I need to set the permissions in the whole space.

I've tried it before and it didn't work, but now this worked.

DPK_J Community Leader Aug 28, 2019

oh! nice.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What project did you transition or start on Confluence with the shift to remote work?

It’s been great to hear from fellow users over the last few weeks about the best tips and fun moments you’ve had working on Confluence since the transition to working remote. I’d love to keep the c...

32 views 2 4
Join discussion

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