og_access
The OG Access module for Drupal 10+ enables access control for private and public groups and group content within Organic Groups. It allows group owners to restrict content visibility to only group members or open it up to all site users, supporting both public and private access controls.
Features
OG Access 1.x provides essential private group functionality by adding two access control fields:
- Group Visibility: Choose between Public (accessible to all site users) and Private (restricted to group members only).
- Group Content Visibility: Each piece of content within a group can be marked as Public or Private, giving detailed control over content access.
The module leverages hook_node_grants to determine content visibility based on these settings and group membership. This is ideal for creating private communities, restricted-access knowledge bases, and member-only intranet sections.
Post-Installation
After installation, go to Organic Groups settings to configure default access. Group owners can set each group and its content items as public or private via these fields, available in group and content type settings.
Additional Requirements
OG Access requires Organic Groups to function. For version 1.x, no additional dependencies are needed beyond Drupal core modules.
Supporting this Module
To support OG Access development, consider contributing on Drupal.org or sponsoring future improvements.