Is there a way of manually subscribing multiple users to a space?

Ideally, this would by adding the group to the space but any other method would also be helpful.

thanks,

mark

Comments

mpotter’s picture

You either add them manually, or add them to a group and then add the group to the space.

You could also try this module: https://www.drupal.org/project/og_massadd for bulk user membership, but I have not tested it.

markchitty’s picture

What I am trying to achieve is that all members of a Space get a notification email when that space is added to.

Normally Space members would need to actively subscribe to a piece of content to receive notification emails, I'd like all Space members to be notified if anything changes.

is this possible?

dpoletto’s picture

"I'd like all Space members to be notified if anything changes" ...as a setting set before the Space is created (as I read what you wrote above: "...when that space is added to.")?

I think a Space should exist before any content could be created into it...and so, only after it is created, notifications/subscriptions about its content's changes could be set (in a way or another) for its members. Isn't it?

markchitty’s picture

ok, maybe I'm not explaining it well :)

so, I have a Space called 'Everyone', it has a Group called 'Staff' inherited.

I have then created a 'Default' Subspace called 'News', I want everyone in 'Staff' to get a notification when News is updated.

Now, normally people would subscribe to content themselves but I want to subscribe everyone in 'Staff' to 'News', either automatically or at the very least using a function to do this.

Hopefully I've missed something obvious in the docs and there is an easy way to do this...

thanks.

mpotter’s picture

You should be able to edit the subspace News and set the Notifications widget Group to your Staff group. Now whenever you create new content in News you'll see that the Staff group gets automatically added to the notifications for the content node.

So it won't work for existing content, but will work for New content since the Notification settings for the Space just set the default for creating new content.

At this time there is no way to simulate a user clicking the Subscribe button on a Space page.

joep.hendrix’s picture

#5 I think you are wrong here.
Only directly subscribed users (i.e. not via inheretance via Group) will be notified.

Maybe it is different in 2.6 but this is "by design".
Personally I think it is a design mistake because there is no way to notify everybody other than manually adding all the individual users to a space. I think that is why you want to group your users into groups in the first place.

mpotter’s picture

Status: Active » Closed (fixed)

You are correct, it will only notify users in the Staff Group that are also direct members of the group.

This is "by design" because Groups in Atrium often come from your identity management system, such as LDAP, and are used as "access control groups" similar to "roles" in Drupal and often have a large number of people in them. Such as "Faculty" in a university, or "Managers" in a company. You don't want to spam this entire group...you only want to notify members of that group who are working in the specific space.

There are other ways to send email to groups of users in Drupal, such as one of the bulk email modules, or via the Rules modules.

Basically, "Groups" are for access control in Atrium, and less for Notifications.

Closing this as old and answered.