Hello everybody,
I have created space blueprint containing some page tree. My goal is to apply access permission to some page in hierarchy during creation, e.g. for 'managers' group. Is it possible? Where should it be declared?
Thank you for your help!
Paweł
I'm not sure if I understand your requirements correctly. But maybe you could use an event listener that applies restrictions to the new page after the page has been created by the blueprint wizard? Maybe by using com.atlassian.confluence.plugins.createcontent.api.events.BlueprintPageCreateEvent or related event?
I have not used the permission API by myself. I especially do not know if adding permissions after the page has been created is secure enough for your use case (or the implications if for any reason the event does not get triggered and the page remains unprotected).
You can't do this because you could put in restrictions that would prevent people from using the blueprint.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the meantime I found similar question concerning use of ContentPermission class: https://community.atlassian.com/t5/Answers-Developer-Questions/Confluence-Blueprint-how-to-set-group-restrictions-by-blueprint/qaq-p/517913 and the second one with PageManager: https://community.atlassian.com/t5/Answers-Developer-Questions/Accessing-pageManager-from-a-custom-Confluence-blueprint/qaq-p/488032 . If it's not possible to add such a restriction, what is the proper destination of ContentPermission? I can't find any example of application.
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.