I want to make an Organic group private,to be seen only from members of this group. All the other will get an "Access denied" or something like that. For the time being,I can see the Group but not its content. I would also want NOT to be able to see the existance of the group,if I am not a member of it. I am working on Drupal 7. How to do that? Thanks
You need to enable og access control module.
Then navigate to admin/config/group/fields, add an visibility field to your og bundle
Then edit the og bundle content type, there is a new field added to it, make your change for public or private
Please consider that to make a group truly "private" you have also to remove the "register" permission for non-members otherwise even if the group is "private" non-members that can guess its nid can subscribe (at http://www.example.com/group/node/[nid]/subscribe) and hence view the group's content [OG 7.x-2.2].
This required additional steps for me. Also an unfortunately specific recipe. Viewing
node_access records using Devel Node Access module & block provided some pointers.
Admin > People > Permissions
Set Anonymous and Authenticated to can view content
Admin > Modules
Enable OG permissions via Organic Groups Access Control module
Admin > Configuration > Organic Groups > OG Field Settings
Add visibility controls (fields) to group node-types
Configure other NAC modules, Content Access in my case, to weighted less than, before, OGAC.
Defaults are now allow viewing, unless set by the group-type node. If you change content visibility from a group page, the subpages have to be resaved or
drush php-eval 'node_access_rebuild();'
protected by kiamlaluno♦ Oct 16 '18 at 14:49
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?