By default, groups are public with public content, which means all site users, including anonymous users can see the group. In this video, I'll show you how to create private groups, which only members of the group can see on the site.

Enable modules

  • Go to "Modules" (admin/modules) and enable:

    • Organic group access control
  • (Save Configuration)

Once OG access control is enabled, you see we have to rebuild the content access permissions:

  • Click "Rebuild Permissions"
  • (Rebuild Permissions)

Create a private group

To create private groups we need to venture into our first section of Organic Groups settings.

  • Go to "Configuration => Organic groups => OG Field Settings" (admin/config/group/fields)

Organic Group Field Settings

*Bundles: Group (There are a number of bundles that can be chosen here, and in this case, we're going to choose the Group bundle.)
* Fields: Group visibility
* (Add field)

Now, let’s take a look at what this has done by creating a new group.

Creating a private group

  • Go to “Content => Add content => Group” (node/add/group)
  • Title: Group #2 (Private)
  • Body: (Lorem Ipsum)
  • Group visibility: Private (We can set the group visibility to public, which is the default or private.)
  • Menu settings: Select Provide a menu link
  • (Save)

Now we see Group #2, and it's menu link. However, if we switch over to Safari, we won't see the menu link, and in fact, we can even type in the link directly, and all we'll see is an access denied page.