Restrict content by group membership


Content Restriction, Frontend Access Control, Content Protection, Access & Security

The Black Sheep Research Plugin for selecting content by user groups in Joomla

This plugin enables the portions of text to be displayed on account of the current user being a member of specified group(s). This is achieved by surrounding the relevant text with, for example:

{usergroup 5 || 7}...{/usergroup}


{usergroup editor}...{/usergroup}


{usergroup !8}...{/usergroup}

You can specify as many groups as you wish, and they are separated by ||. By default the separator is interpreted as OR. The first group can be preceded by ! which means that the user must NOT be a member of any of the listed groups for the enclosed text to be displayed.

Note that if you want to show something to all logged in users apart from a specific group, you also need to exclude guest as in:

{usergroup ! mygroup || guest}...{/usergroup}

You can use group numbers or group names. If names are used, they must be the actual names in use on your site, which may vary according to the language in use.

The plugin will honour a request referring to public (group 1) but it has no point, since it permits (or refuses) everyone.



By Martin Brampton
A component that is easy to install and use, yet has an unparalleled depth of features for a powerful file repository. The latest version adds the ability to play audio/video files as well as to download them. There are related modules and plugins to complement the main component. Remository supports the secure hosting of local or remote files for download by site visitors. Files can be upload...


By Martin Brampton
Development Tools
A simple way to build REST style services within Joomla. Restful is a plugin that provides the basic logic. To build a service, you create a plugin in the folder "restful". Your plugin can specify multiple combinations of operations (such as GET, POST, DELETE) and URIs (such as /restful/object). The Restful plugin triggers your plugin(s) with the event onRestfulPaths. Your plugin can then provide...

Restrict content by group membership

Martin Brampton
Last updated:
Nov 22 2022
10 months ago
Date added:
Nov 19 2022
GPLv2 or later
Free download
J3 J4

Uses Joomla! Update System