---
title: "How do Command Permissions and Command Groups work in Gateway Authentication"
description: "Command Groups in Gateway authentication act as a permissions filter and do not automatically grant access to all commands within the group. Users can only execute commands explicitly listed in the Command Groups assigned to their Role or User permissions."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004030729-geneos-how-do-command-permissions-and-command-groups-work-in-gateway-authentication/index.html"
---
In Gateway authentication, Command Groups defined in the Permissions section of a Role or User definition act as a permissions filter.

It's not clear from the Authentication configuration screen but using Command Groups in the User and Role permissions section doesn't pull in all the commands from that Command Group. In Authentication, Command Groups only permit the individual command listed if they are in one of the groups given. This allows for additional permissions filtering.

As an example, we have a commands group called User Commands in the Commands section of the Gateway Setup Editor with a command called Simple PS.

![Geneos user commands in the GSE](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-user-commands.png)

Below we have a role called Demo Role with the following Permissions section, notice it has the command option defined.

![Geneos permissions in demo role](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-demo-role.png)

The Command window shows the `/PLUGIN:sampleNow` command defined with Execute access. It also has the User Commands group defined in the Groups section.

![/PLUGIN:sampleNow defined command](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-command-window.png)

As a result our jdoe user is unable to execute the /PLUGIN:sampleNow command despite having execute access. This is due to the User Commands command group not listing the `/PLUGIN:sampleNow` command, thus eliminating the user's sample now permissions.

![Geneos sample dataview of sample now permissions](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-sample-now-dataview.png)


