Disable personal space blogs

How can I disable blogs for personal spaces only ?

2 answers

0 vote
Ann Worley Atlassian Team Dec 08, 2017

Ian, the only way I can think of to do that would be by going space by space and removing the add blog and admin permissions from the creators of the spaces. (Admin permission would allow them to grant themselves the blog permission again)

Confluence lets you configure default group permissions (Confluence Admin>Space Permissions) that will be applied to newly created spaces, and this applies to personal spaces, but there isn't a permission template for the creators of personal spaces. It is assumed that they should be able to use that space freely.

Is there anything in particular you want to avoid by not having blogs in personal spaces? Maybe we can help with a different approach.

Thank you @Ann Worley for you reply....now going space by space is tedious since we have 1000+ users and we want to avoid personal spaces having blogs since we have a workflow which prohibits creation of personal blogs as the blogs created needs to be approved before being published. 

Ann Worley Atlassian Team Dec 11, 2017

Today I learned that I cannot edit the personal space owner's space permissions as an admin. I tested on Confluence 6.5.2 but apparently this has been the case for quite a while: Administrators cannot modify permissions for a personal space's owner

Nor could I find a plugin in the Atlassian Marketplace to achieve this.

You might consider removing the "Personal Space" Global permission for all the users that need to have their blogs approved.

@Ann Worley Thanks for your suggestion.

The problem will be the personal blogs that still exist and we cannot disable the whole personal space.

@Ann Worley We worked on a workaround to solve the issue.

What I did was to hide the blog item from the create dialog and created a blog button and ensured it appeared on regular spaces hence when the blog post is created it will be subjected to the workflow

Ann Worley Atlassian Team Dec 20, 2017

That's a sound approach. I am happy to hear you found something that works for your use case!

Do you have time to let us know how you hid the blog item and created the blog button for regular spaces? If so, please post it as a new answer to this question. Then we can mark it as the answer, for the sake of anyone who sees this question in the future and wants to do what you did.

Okay let me do it.

(i)To hide the blog item from the menu item dialog box I used the following css:

li[data-item-module-complete-key*="create-blog-post"] {display: none !important;}

(ii)To create the blog button I did it as follows using javascript:

1.Get the space key since it will be needed in the blog url:

var spacekey = $('meta[name=confluence-space-key]').attr("content");

var blogurl = '/pages/createblogpost.action?spaceKey=' + spacekey;

2.To create the button:

var $bt = $('<a>').attr({name:'Blog Post',title:'Blog Post',href:blogurl,class:'aui-button aui-button-primary aui-style newsbt'}).text('Create News');

3.Make the button appear next to the create button in the navigation:

 $('#quick-create-page-button').after($bt);

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

695 views 21 12
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you