How to remove the ADD USER in the "admin users area" in Drupal 7 - user-interface

I already did the admin only register but I would like to remove this tab if anyone can help me
Thanks

In admin menu, under People -> Permissions (/admin/people/permissions) you can set permissions for every user role. Under the "User" permissions group there is permission "Administer users". I believe that's the one you should disallow and this button won't appear for specific role.
You can also use CSS to hide that link, but it wouldn't be very clean way...but it's an option B.

First of all this link is an Action Link which is a menu item. There are a lot of methods to hide it. Here are some suggestions.
1) On a custom module alter the menu that displays the link (with hook_menu_alter. The code to do this should be something like this:
function MYMODULE_menu_alter(&$items) {
// Check current user is not User 1 (admin)
global $user;
if ($user->uid !== "1") {
// Disable the link of admin/people/create
$items ['admin/people/create']['access callback'] = FALSE;
}
}
More specific alters can be done with hook_menu_local_tasks_alter function. Also some modules may do this from a UI such as Tab Tamer but haven't tried it.
2) Use the Administration Views module that overrides this view and remove the link from the views UI.
3) Use common Views module to do the same as above. Notice that you have to create that page with the same url (admin/people)
4) There are some more complex solutions with permissions by role such as the module Administer Users by Role but it may be too much for your simple case.

Related

Can you restrict access to parts of strapi admin?

Using Strapi to build an API. Love most of it, but it seems access to the admin interface is all or nothing; you can't hide the more advanced aspects of admin for users who should only be able to add/edit content...? Am I missing something? How is this done?
This is the current top-voted feature request at Strapi. You can vote for it at: https://strapi.io/vote.
Admin - Permissions
Restrict admin panel sections access depending on users roles.
Actually you can change some things, since there is an /admin folder inside of /node_modules that you can overwrite, as the documentation says here, you can overwrite some logic for specific users and specific cases, that's not the best way to do it, but it's what we have for now.
Example: In my project I don't want any user to access the Content-Types Builder on production, at the end, I decided to hide the entire Plugins section on production environment.
So firstly I copied the entire /admin folder inside of my project, that way it'd be simple to find/edit any component.
Secondly I searched were the sections where rendered, and I found this file:
/my-project/admin/src/components/LeftMenuLinkSection/index.js
And I added this inside of the component:
const LeftMenuLinksSection = ({ section,
....
// before the return
if ( section === 'plugins' && process.env.NODE_ENV !== 'development') return null;;
And it worked, on production I don't have the plugins section on admin left menu (image 1):
It depends what you want to do, that could be possible, so it's not "all or nothing", it's more like all or almost nothing.

Yootheme widgetkit user permissions

My clients are restricted in the admin panel of the joomla and theri user group is menager. I need to show them what they need not more than that. But I couldn set the widgetwit permissons for that group there is no option to make that like other components configuration popup screen. How can I show it to the menager user group.
First you'll need to allow your component to save permission-related information, then to access the preferences and finally to set the appropriate values.
Into the components' folder: /administrator/components/com_widgetkit/ create config.xml with the code below or edit it to include the "permissions" fieldset.
Then add a JToolbar button for preferences anywhere in the component or the view:
JToolBarHelper::preferences('com_widgetkit');
Now in the administrator view you should see the options button.

Joomla ACL: Only allow access to custom component in the backend?

I'm building a component for the backend. I don't want the users who will access it to access ANYTHING else in the backend except for this component.
I tried following these two instructions:
http://www.aclmanager.net/blog/general/31-how-to-add-basic-acl-support-to-your-extension
http://docs.joomla.org/Developing_a_Model-View-Controller_%28MVC%29_Component_for_Joomla!1.6_-_Part_14#Describing_the_ACL
I made a new User Group with a parent of public and allow admin login (which would lock them out of everything) and then tried adding the ACL code from those links above with permissions to create and edit but I just get a blank screen (not even a logout link). The "Debug Permissions Report" showed the correct permissions but nothing's showing up.
Any ideas? My next step is to manually go through every component and not allow access to that new User Group but it seems like there's an easier way.
Thanks!
In Joomla! 2.5 we regularly create "Content" only backend users that have access only to the 'com_content' component.
Going back through our steps the only thing you haven't specified is adding the new user group to a View Access Level. If you're using the standard sample content installed when setting up a Joomla! website you can add your new user group to the "Special" view access (although any will do).
If a new group has 'admin login' privileges it can login but without a View Access level it can't see anything.. it's a subtle difference but it's the way Joomla! works.

Joomla custom user groups

I have a Joomla website and there are two sections to the site. One section is for the public and the other is for retailers which have to be approved. What I need is to create a group of users which are the only ones who can access the retailer section of the site. These users don't get any editing/publishing/administrator roles; they're just registered users with special access. I've tried several extensions but had no luck with it. Does anyone know how this can be done?
You don't need groups: you just have to make sure to disable the "self registration" option (from admin control panel: Global Configuration -> system -> Allow User Registration = No)
Also, you'll have to configure each article/menu to have Access Level "public"/"registered".
You can register new users from the admin control panel and only they will be able to view "registered" content.
Read this :-
http://docs.joomla.org/Access_Control_List/1.6-2.5/Tutorial
http://extensions.joomla.org/extensions/access-a-security/site-access/backend-a-full-access-control/9040
Search about access control list.

How can give the menu permission to perticular user in Joomla?

I create some backend menu in joomla administrator like (Manager, admin, Super admin, agent).
First three are inbuilt and agent is custom. I want to give some particular menu permission to agent. so please tell me in database which tables having menu permission to particular user. so i can set the permission. Provide me tables name in Joomla database......
If you need a solution before 1.6 is stable, you can use any number of ACL extensions -
http://extensions.joomla.org/extensions/access-a-security/backend-a-full-access-control
JoomlaPraise also has a nice admin template that allows for menu viewing customization called AdminPraise2 that would also do what you need.

Resources