---
title: "How to disable the dataview's Sample Now button"
description: "Disabling the dataview's Sample Now button in Geneos is done by enabling Gateway Authentication and assigning a role that restricts the /PLUGIN:sampleNow command. This configuration causes the Sample Now button to be greyed out for users with that role."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004029409-geneos-how-to-disable-the-dataview-s-sample-now-button/index.html"
---
This is done by enabling the Gateway's Authentication feature and configuring a role that restricts the **Sample Now** button.

Use this [Disable_Sampling_Now_button.xml](/faq/downloads/geneos/115004029409-6683074512541-Disable_Sampling_Now_button.xml) configuration file to set up the following role. Notice that this role removes access to the `/PLUGIN:sampleNow` command.

![Save as data view defaults](https://docscdn.itrsgroup.com/faq/images/geneos/disable-sampling-now-button.png)

After granting a user this role, they should now see that the **Sample Now** button is greyed out. Screenshot for reference.

![Save as data view defaults](https://docscdn.itrsgroup.com/faq/images/geneos/sample-button-greyed-out.png)

For more information, see documentation about [Gateway Authentication](https://docs.itrsgroup.com/docs/geneos/current/security/access-controls/geneos_authentication_tr/index.html) and [Configure command permissions](https://docs.itrsgroup.com/docs/geneos/current/security/access-controls/geneos_authentication_tr/index.html#command-permissions).


