How can I limit user access to a specific tool
I can do this for datasets using the admin menu, but how can i prevent a user to access a tool, or rather, only allow certain users to access a tool
How can I limit user access to a specific tool
I can do this for datasets using the admin menu, but how can i prevent a user to access a tool, or rather, only allow certain users to access a tool
While it's not currently possible to technically completely disable particular tools for individuals or a set of users, you can mask them out of the toolbox using admin-side toolbox filters. See https://wiki.galaxyproject.org/UserDefinedToolboxFilters for more details.
if the tool calls upon a script using the <command> tag
are there env variables that are present that can reveal to me the user that is logged in?
I would keep this logic out of your tool and filter at the job destination level with the recipe laid out on this page: https://wiki.galaxyproject.org/Admin/Config/Access%20Control.
Not env vars, but if you check out a few of the examples on that page (in particular the restrict_development_tools mapping, sounds like something you'd use as an baseline filter) you'll see that filters have a 'context' with access to trans.user, so you can get the user with context.trans.user
Ahh, and I just realized what you were actually asking. So, instead (or in addition to) filtering tools out of the toolbox you want the tool itself to check for access permissions?
You can do this (leveraging an external list) using the $__user_email__ or $__user_id__ variables. See Reserved Variables section on https://wiki.galaxyproject.org/Admin/Tools/ToolConfigSyntax