Hello,

I have a role "rinconadmin" which is different from administrator role.
I as administrator gave permission to role "rinconadmin" to administer all users. Under people > permission > users section, I selected "administer users and view user profiles" for "rinconadmin" roles.
When "rinconadmin" user logs in, he can see People in admin tool bar. People link displays list of all users including admin. I am not sure how to remove the admin link from that list. Now, rinconadmin can edit admin's credentials. I do not want that. I could not find any option to remove the admin from that list.

Please advise.

Comments

VM’s picture

investigate https://www.drupal.org/project/userprotect to protect user 1 from being edited.

As far as removing/excluding uid 1 from the default list you will need custom code.

mmjvb’s picture

Change the condition to >=2 of the people view. Apply and Save. Admin (1) will be excluded from the list.

drupol’s picture

Config > Account settings > I do not see any option to change the condition => 2. Please advise.

VM’s picture

Config > Account settings > isn't where it would be. The instruction was to change the config of the 'view' generating the list of users.

drupol’s picture

I did not create a view to generate the list of users. Under people > Permission: I selected below options for that role:

  • Use the administration toolbar
  • Administer users
  • View user profiles

After that, when I login as user of that role, I see People link. I am not sure where would I go to set the condition => 2. Please help.

VM’s picture

understood, but you can create a view and override the default or use admin menu's override in which the condition will now be applicable.

Please discontinue adding "please help" to your posts. It's evident that you need help, you're posting on a support forum. Thus the 'you need help' is fully implied.

drupol’s picture

I was able to create a view to generate the list of users.
Then filtered the view so it does not display admin.
It works. Thanks.

mmjvb’s picture

As mentioned it is the people view, part of core! Created for you upon installation.

/admin/structure/views/view/user_admin_people

Jaypan’s picture