Skip to main content
10 votes
Accepted

How to know which usergroup/specific access level user belongs to

To get an array of groups the currently logged in user belong to, you can use the following: $user = JFactory::getUser(); $groups = JAccess::getGroupsByUser($user->id); var_dump($groups); To ...
Lodder's user avatar
  • 26.9k
6 votes
Accepted

How to create user group programmatically?

You can add the group by directly invoking the save function in com_users component model. $group = array('id'=>0, 'title'=>'Group Title', 'parent_id'=>1); JLoader::import('joomla....
Nagarjun's user avatar
  • 3,001
5 votes
Accepted

How to change parent group?

Provided that you have admin access then you can follow the steps below In the site admin area and go to the Users menu Select the Groups menu item User group select group menu Find the group you ...
sirobertson's user avatar
3 votes

Assign user to a specific group based on custom field selected

Write user plugin which will have the below file structure plugins/user/plugins_name/ plg_add_group.php plg_add_group.xml plg_add_group.xml - Write plugin manifest code here you can ...
Sudhir Sapkal's user avatar
3 votes
Accepted

User Registration Assign to Specific Group

Briefly, these are your main options: Write a custom user registration component Write a User Plugin that will handle the usergroup of the registered users Use 3rd party Form extensions which ...
FFrewin's user avatar
  • 19.7k
3 votes
Accepted

Getting a blank page after logging into administration on non-SU account

Obviously it is something wrong with your ACL. Usually it's hard to give a reply with the actual solution in such questions with the first try, as ACL needs a hands-on investigation, or otherwise ...
FFrewin's user avatar
  • 19.7k
3 votes

J3.3 Assigning An Article Multiple Access Levels

The right way of handling ACL is to create user groups, in tyo Solutions, Authorized, Retail, Distributors And after that create access level for each combination you need. For example you create ...
Adam M.'s user avatar
  • 447
2 votes
Accepted

How to define access control for menu items?

There is a tutorial on the docs page which is worth reading: https://docs.joomla.org/J3.x:Access_Control_List_Tutorial In your case, you only need to deal with access levels, you can ignore the ...
Bakual's user avatar
  • 5,582
2 votes
Accepted

Joomla don't see subgroups in the Articles tab (Joomla 4)

Please note the difference between "user groups" and "access levels". Access Levels determine which users have access to certain views and features. Said levels are assigned to ...
Lodder's user avatar
  • 26.9k
2 votes
Accepted

Creating articles in front end. Status field is disabled and articles remain unpublished

Joomla ACL 1. Edit State Privilege In order for a user to be able to set/switch the publishing status of a content item (published/unpublished etc), they need to have the Edit State permission ...
FFrewin's user avatar
  • 19.7k
2 votes
Accepted

Joomla 4: get all users in a usergroup

The jimport statements are replaced by adding use statements prior to your class statement. The getUsersByGroup() is still valid and has no reference to being depreciated while the JFactory::getUser()/...
Irata's user avatar
  • 4,001
2 votes

Joomla 3 - How to find if logged in user is registered?

Resolved with the following code: I just needed to discover a way of grabbing either the group name or user group id. We do the latter and grab the id of the group we wish to manipulate. All user ...
suge1w's user avatar
  • 31
1 vote

Joomla 3 - How to find if logged in user is registered?

A quick search turns up a couple of answers that give you a list of groups the user belongs to that you can then process to determine if the group is the Registered group. This answer is for J2.5 but ...
Irata's user avatar
  • 4,001
1 vote

What if I assign every user group to a Super User?

In fact, Setting 2 would only make sense to me if you.. ...Have no inheritance of permissions to the top ...Only one usergroup has access to a specific task Then it makes sense, if the superuser ...
Marco's user avatar
  • 685
1 vote
Accepted

How to query for users from a specific user group?

Your question would be more complete if you stated why it doesn't "work". I don't see anything wrong with the WHERE clause declarations (because the default glue is AND). What does jump out at me is ...
mickmackusa's user avatar
  • 4,826
1 vote
Accepted

User group and access level

You need to create a user group for each menu item. Then, create an Access Level for each menu item, and assign it to its corresponding user group. When you create the menu items, set its Access to ...
Mohamed Abdelaziz's user avatar
1 vote

Joomla membership with group administrators

We've done (what sounds to be) the exact same thing you are requesting using only OSE Membership and the OSE License add-on. We set up 3 levels of membership (Trial, Basic, & Premium), one of ...
Michael Yaeger's user avatar
1 vote
Accepted

Limit articles frontend creation by user group

I would suggest developing a content plugin along with template override to do this task. The below example limits max 5 articles per day per user. public function onContentBeforeSave($context, $...
Nagarjun's user avatar
  • 3,001
1 vote

Why doesn't this 'usergrouplist' field show a label?

The problem is likely in your view. What do you get when you print something like the following in your view? <?php echo $this->form->getLabel('view_access'); ?>
itoctopus's user avatar
  • 3,226
1 vote
Accepted

Why doesn't this 'usergrouplist' field show a label?

It worked after I uninstalled and reinstalled the component. So apparently there's nothing wrong with the code.
Glitch's user avatar
  • 297
1 vote
Accepted

Custom User-Group: Giving access to users component administration

I can not reproduce this on a Joomla! 3.7.2. The steps below are what I did. Can you follow them and report back if this works for you? Created the Custom User-group, it is a child of the Public - ...
FFrewin's user avatar
  • 19.7k
1 vote

Admin interface menu not showing

The solution is to allow access to the module for the Admin Menu for this usergroup. Quite simple... :-)
Delete my account's user avatar
1 vote

Adding fields to user group admin form

The group edit.php template file won't render any additional fields that might exist on the form, as it seems to be quite simple and somewhat static. Likely you are going to need a template override,...
FFrewin's user avatar
  • 19.7k
1 vote

K2 show items to selected users

If you want to control access to K2 articles individually, you can do that inside that article settings in the "Access Level" field. The same setting can be applied (Access Level) to K2 categories ...
Michael Yaeger's user avatar
1 vote
Accepted

How to create two different types of registered users?

I believe you should be able to do this through Joomla's Access Levels. In the backend, go to: Users (top menu) >> Access Levels >> New Create a different access level for each sub-usergroup. Once ...
Lodder's user avatar
  • 26.9k
1 vote

How can I add my variables in user object

According to this tutorial https://docs.joomla.org/How_to_use_user_state_variables it is quite simple $mainframe = JFactory::getApplication(); $mainframe->setUserState("$option.state_variable", "...
Adam M.'s user avatar
  • 447
1 vote
Accepted

Component not showing in admin top Menu only for `Editor` security group

By default the User Group Editor does not have access to the back-end of the site, check with more detail the full description for each group here: User Group Access levels explained in simple terms ...
AlejandroVega's user avatar
1 vote

Change Menu after Logging In

You will need ACL levels according to your user groups. Then create the corresponding content/menus/modules etc considering your groups/viewing levels and assign each content item to that access ...
FFrewin's user avatar
  • 19.7k
1 vote

Joomla3 Loading two diffrent plugin for two diffrent user group in their profile page

It's very simple: you just need to be sure that you have different Access Level for those groups, if you don't - go and make sure about it. (Manage Users - Access Levels) Then go to your plugins ...
Alexandr's user avatar
  • 1,130
1 vote

Single Login to Multiple Areas

Yes is possible. We have a feature called Access Control List (ACL) by default in Joomla!, so you can create simple or complex restricted areas for your content and site sections. Here you can find ...
AlejandroVega's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible