Change WordPress user roles and capabilities › Forums › How to or FAQ › How to make a plugin visible for non admins
Tagged: plugin management for non-admins
- This topic has 8 replies, 4 voices, and was last updated 3 years, 8 months ago by Vladimir.
-
AuthorPosts
-
11/06/2020 at 10:45 #6911RVSCCParticipant
Hi,
Frequently i need to give access to some plugins for non admins (shopmanagers). But most of the time those plugins are default built for admins only.
What is the best way to give them access?
Normally i try to enable the options to the user role, but that is not always working.
Is there a best practice to start this?
Do i need to make them a copy of the admin role, and disable options?
When i do, sometime i cant disable plugins from the admin console?
I don’t know why, it differs per plugin.I have read that some plugins are not possible to be managed by the plugin, how can i discover those?
I have the pro plugin and i am familiar with the “menu” and “plugin” features.
In short what is the best practice in this.
Thnx
19/06/2020 at 08:34 #6925RVSCCParticipantAnd?
30/11/2020 at 23:54 #7177GetFieldReadyParticipantI’m after the same answer. I have LearnDash installed and wish for a colleague to have access only to that Plugin and nothing else. Did you find an answer?
05/02/2021 at 23:52 #7337ToiBoxParticipantI have a partial answer. If you would like to give one of your user roles basically-free rein with Learndash what I did was first, from the WP Backend Menu go to Settings > User Role Editor. Then select Additional Modules from the tabbed options at the top of the page, then, under the first list of options (prior to “Content editing Restrictions” check on the option “Activate per plugin user access management for plugins activation” (1.png). From here go back to URE @ Users > User Role Editor. Once here select “Plugins” from the options menu at the right of the screen (2.png). A modal will pop up allowing you to select the plugins that you would like for your specified role to manage (3.png and 3_details.png). From there, open up another browser and test your user’s WP backend experience and you’ll see that they now have mostly full control of your elected plugin (4_EDU-Dir_role_view.png).
With all of that being said, I’m still having difficulty in exacting the specific level of control that I would like to give these roles. The issue that I’m having is that no matter how granular I get with these options and how many I enable for my desired user there option set is still significantly diminished compared to mine. I’m not able to give them the Overvew, Reports, Add-ons, or Settings feature like I really want so that they can completely manage it on their own. I’ve spun my wheels for an excessive amount of time already, trying to figure out how to model these user roles exactly as I would like.
I hope that this helps, and pardon the lack of screenshots (as I had intended), I see that there is no way of uploading supporting images to this text. Also, if anyone knows how to solve the rest of the problem it would be great.
Thank you.
06/02/2021 at 04:28 #7338VladimirKeymaster1st, “Activate per plugin user access management for plugins activation” add-on has another purpose. It’s designed when you prepare the site for a client, installed and activated some plugins and do not wish that client see them and can deactivate, but at the same time you wish to allow for client to activate/deactivate some other pre-installed plugins. It’s all not about access to the some specific items at the admin menu.
2nd, you have “Admin menu access” add-on. Which you can use:
1) to get information about what capability protects what admin menu item. Just open “Admin menu” for the ‘Administrator’ role, which has access to the all admin menu items by default.
2) In case you can not block/hide unneeded menu items revoking related user capability from user role, like ‘manage_options’ for example, you can block the “Settings” menu item here, but user still will have access to the menu, which is also protected by ‘manage_options’.It’s possible to include screenshots here if use external links. Be aware that message which contains > 2 links, automatically gets ‘pending for moderation’ status. (If I missed and did not approved it, it’s better to send the remind).
06/02/2021 at 04:31 #7339VladimirKeymasterE.g. mentioned by you “Learndash->Reports, and Learndash->Settings” menu items, which also are protected by ‘manage_options’ capability. So you 1st, grant to a role ‘manage_options’ capability. Then open for it ‘Admin menu’ and block menu items, which use the same ‘manage_options’, but are not needed for your role/user.
07/02/2021 at 04:49 #7340ToiBoxParticipantVladimir,
Thank you for the clarification and additional input. As for the Admin Menu Access that you mentioned above, I followed the link and activated the feature on my end but have an additional question for clarification. The link “URL Parameters White List…” that’s associated with the Admin’s capabilities, where can I find the documentation on how to best use this feature? I’m not exactly how to use it but suspect that I might be able to grant specific roles specific access such as the Overview link for the LearnDash onboarding videos to give to one of my client’s roles. Currently this content is not accessible by anybody else other than the Admin even with virtually all of the selectable LearnDash capabilities turned on.
09/02/2021 at 02:27 #7345VladimirKeymaster“URL Parameters White List…” allows to inform URE about URL parameters which you allow to use for not blocked links/menu items. It’s useful when you use “Block not selected” model blocking access to admin menu items.
09/02/2021 at 03:46 #7346VladimirKeymasterLearndash->Overview is protected by ‘manage_options’ capability. So you 1st, grant to a role ‘manage_options’ capability. Then open for this role the ‘Admin menu’ and block menu items, which use the same ‘manage_options’ (like “Settings”, but are not needed for your role/user.
-
AuthorPosts
- You must be logged in to reply to this topic.