Groups provides built-in access control that allows to restrict access to posts, pages, and custom content types to specific groups and their members.
You can also control access to content using its Blocks and Shortcodes.
The following sections provide more details on how to control access: