I want to restrict view/edit permissions of spaces that are created with my space blueprint to particular user groups. When I not create a space with the blueprint all confluence users have read access.
Is it possible to set default space permissions from within a space blueprint?
Community moderators have prevented the ability to post new answers.
You can enable the restrict space checkbox in you .soy file of your space blueprint.
... {template .dialogForm} <form action="#" method="post" id="create-project-management-space-form" class="common-space-form aui"> {call Confluence.Templates.Blueprints.CreateSpace.createSpaceFormFields} {param showSpacePermission: true /} {param fieldErrors: $fieldErrors /} {param name: $name /} {param key: $key /} {/call} <fieldset> ... {/template} ...
In the example showSpacePermission is set to false. Set this to true will enable the checkbox and then only an admin can see the space.
Regards,
Tim
By setting state.pageData.spacePermission = "private"; in the javascript code, I no longer need the checkbox on the form and I van enforce that the space will be private.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do not know if this could be configured in XML and I have not done this before, but I think with the help of a listener and a space permission manager this could be accomplished.
@EventListener public void onSpaceBlueprintCreate(final SpaceBlueprintCreateEvent event) { ... }
Just a thought ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.