How do you auto-subscribe all users to a Confluence blog or space?

Logan G Hawkes
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 19, 2012

I have created a blog on a Confluence space and I'd like to auto-subscribe all Confluence users to that blog. As far as I've been able to determine each individual user has to make an explicit act to watch a space. Even as a Confluence admin there doesn't seem to be a way to automatically subscribe a set users. Is there some way to do this that's less klugely and less risky than editing the database directly?

I assure you that I will only use this power for good.

Followup: I dug into the database and found that the follow_connections table in the database holds the relationship indicating that one user is following another.

mysql> desc follow_connections;
+--------------+--------------+------+-----+---------+-------+
| Field        | Type         | Null | Key | Default | Extra |
+--------------+--------------+------+-----+---------+-------+
| CONNECTIONID | bigint(20)   | NO   | PRI | NULL    |       |
| FOLLOWER     | varchar(255) | NO   | MUL | NULL    |       |
| FOLLOWEE     | varchar(255) | NO   | MUL | NULL    |       |
+--------------+--------------+------+-----+---------+-------+
mysql> select * from follow_connections limit 3;
+-----------+--------+--------+
| 3141591   | lisa   | marge  |
| 3141592   | marge  | bart   |
| 3141593   | marge  | lisa   |
| 3141594   | bart   | lisa   |
+-----------+--------+--------+

What I can't find is where the database stores the relationship indicating a subscription to a blog or a space, rather than to a specific user. Any ideas?

4 answers

1 accepted

1 vote
Answer accepted
Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 19, 2012

The easiest workaround that we did was to use the group these people belongs to (you will be mostly having a group to determine permissions for the space), create a user in Confluence with the email id of this group, login as that user, and simply watch the space. So for every change in the space, a notification will be generated for this group emailid and everyone receives it.

Logan G Hawkes
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 20, 2012

I like it! One issue: all our email is handled by an Exchange server. What I think you're suggesting is that I create a Confluence user that an email address with the same address as that of a distribution list that holds the names of all the people who have Confluence accounts. Due to the size and complexity of our sprawling organization there isn't one Exchange alias that covers all the people who use Confluence. Moreover, a custom list would have to be created and maintained by our IT department. I'd rather not get into the reasons, but this would be far more complex and difficult than just calling Roy and Moss.

Or am I missing something?

Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 20, 2012

Yes, I meant exactly the same. If not for one group, may a set of groups you can create and users and watch the space. Reuse the existings groups managed by the IT department.

Btw, how are you managing the permissions for the spaces in Confluence? Is it open for everyone?

Logan G Hawkes
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 20, 2012

"Permissions? Why?", he said suspiciously.

Permissions are relatively open. You need an account to see anything but if you have an account you can see all but one space. Everyone has add, edit, attach, and comment permissions for visible spaces. I'd button things down more if it was public, but the whole thing is restricted to a corporate network and firewalled away from the outside world. Being as the whole point is to get people to share information I've decided to err on the side of openness. Anyone can make their stuff private, but the default is to make it public. For example, my personal blog is private. I use it as a notepad, a link dump repository, and a place to spitball and flesh out ideas I'm not ready to make public. My public blog is far more polished and focused, hence the request from management to auto-subscribe the entire team.



Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2012

Oh Okie :) Sounds perfect in an enterprise scenario.

0 votes
Ann Marie Guzzi September 10, 2021

Any update here?

0 votes
Christoph December 6, 2019

Is this still the way to go end of 2019?

0 votes
Nick Muldoon
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 1, 2015

Hi Logan,

An alternative to the workaround Renjith suggested is to use Better Blogs for Confluence which allows you to subscribe a group to notifications of new blog posts in a space.

Better Blogs leads to better understanding shares the background on this product.

Thanks Logan, have a great day.

Regards,
Nicholas Muldoon
Arijea

Follow Arijea on Twitter - @arijeasoftware

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events