Creating Private Group "Viewer" Role

VirtualMitra's picture

We are using Drupal to create a custom content type with it's own module along with a site to support that. My boss wants to create a "viewer" user role for groups, where such a member can view the content associated with the group but not create content for that group. This would only make sense with private groups. I have looked into the existing settings for Organic Group User Roles and Permissions and there is nothing to control whether someone can create content associated with the group. Do I have to go in through the API to create this? If so, does anyone have suggestions on how we should approach this?

Comments

Maybe

Energyblazar's picture

You know maybe i did not get your problem properly ....

But let me just express what your facing.... you wish to group members to be able to view the content type and not create or alter it. ? is it right ? if so

Then i would simply go to People > Permissions > Untick the edit and create option for authenticated or any other user role/type.

Group Specific Create Permissions

VirtualMitra's picture

Thanks for your comment. What we are looking to do is to set content creation permissions within each group, not globally. Yes, in the global permissions, the administrator can decide which roles can create content and which cannot, but we want the ability to create group-specific roles and one of these roles would be "viewer", someone who could view the content of the group but not create any content in that group, whereas for a different group they might be an editor or administrator who can create content. So, we don't want to limit them from creating any content anywhere on the site just within a specific group.

Well, in true Drupal fashion, there is already a module for just such an issue that I was not aware of when I wrote this question. A friend pointed it out to me. It's called "Organic Groups Create Permissions" at http://drupal.org/project/og_create_perms and this will let me do what we need.

Organic groups

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week