---
title: "How to add custom commands on Authentication -\u003e Roles -\u003e Permissions"
description: "Adding custom commands on Authentication \u003e Roles \u003e Permissions allows specifying both Gateway and user-defined commands, including those with wildcard characters. You can enter commands manually or use the Add New button to restrict access effectively."
url: "https://docs.itrsgroup.com/docs/faq/geneos/26224200648605-geneos-how-to-add-custom-commands-on-authentication-roles-permissions/index.html"
---
## Related to

*You can specify specific command names, including Gateway commands and user-defined commands, on* [authentication > roles > role > permissions > permission > command > names > name](https://docs.itrsgroup.com/docs/geneos/current/security/access-controls/geneos_authentication_tr/index.html#authentication--roles--role--permissions--permission--command--names--name)*. It accepts user inputs as well as command names containing wildcard characters (\* and ?) to match multiple command names at once.*

### Problem

*Some of the users are confused about how to add user-defined commands when restricting access on the Authentication -> Roles sections of the GSE.*

![Geneos - How to add custom commands on Authentication -> Roles -> Permissions](https://docscdn.itrsgroup.com/faq/images/geneos/26224200648605-26224194343709-mceclip1.png)

### Solution

**This option accepts user-defined inputs** aside from the options using the drop-down button.

![Geneos - How to add custom commands on Authentication -> Roles -> Permissions](https://docscdn.itrsgroup.com/faq/images/geneos/26224200648605-26224200645277-mceclip2.png)

- **You can also use wildcard characters (\* and ?)** to match multiple command names simultaneously. Or you can use the "Add New" button, which is found just below the "Names" setting, to add a new Command

## **Sample Configuration:**

- Sample user-defined command named "os\_release"

![Geneos - How to add custom commands on Authentication -> Roles -> Permissions](https://docscdn.itrsgroup.com/faq/images/geneos/26224200648605-33766176275869-image.png)

- Specifying "os\_release" on [authentication > roles > role > permissions > permission > command > names > name](https://docs.itrsgroup.com/docs/geneos/current/security/access-controls/geneos_authentication_tr/index.html#authentication--roles--role--permissions--permission--command--names--name)

![Geneos - How to add custom commands on Authentication -> Roles -> Permissions](https://docscdn.itrsgroup.com/faq/images/geneos/26224200648605-33766202989597-image.png)

- Result

![Geneos - How to add custom commands on Authentication -> Roles -> Permissions](https://docscdn.itrsgroup.com/faq/images/geneos/26224200648605-33766202989725-image.png)

## Related article(s)

- [authentication > roles > role > permissions > permission > command > names > name](https://docs.itrsgroup.com/docs/geneos/current/security/access-controls/geneos_authentication_tr/index.html#authentication--roles--role--permissions--permission--command--names--name)
- [Specifying command names](https://docs.itrsgroup.com/docs/geneos/current/security/access-controls/geneos_authentication_tr/index.html#specifying-command-names)


