---
schema_version: "1"
id: f6478d4bb3b9f15cf2322aaf6adc68ddfb9fd473d2fb336990ad4f0758b7e2dd
title: Test Row-Level Security with Preview as User
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/server-linux/dm_vconn_test_preview.md
canonical_url: https://help.tableau.com/current/server-linux/en-us/dm_vconn_test_preview.htm
source_site: help.tableau.com
content_type: documentation
content_hash: ff576d76f52dc4b6c6d620a7d7ab8a4f5eed03ed9d4f5edb93ffda1ca572e3a5
description: Test a virtual connection data policy using Preview as user to verify row-level security.
---
[Skip to main content](#main-content)

# Test Row-Level Security with Preview as User

Use Preview as user to test your data policy. You can see the data as the user sees it and ensure that row-level security is working as expected. This helps when the data policy keeps you from seeing the rows in the table (for example, if only salespeople can see rows, and you're not a salesperson).

To preview the data when the data policy is applied:

1. Select a table.
2. In the Table Details section, select the With policy applied check box.
3. Click Preview as user, select a Group (optional) and a User.
4. Verify that the policy shows the correct data for that user in the table details.
5. Repeat for other users as needed.

> [!TIP]
> 
> In Table Details, click ![Pane icon that shows the range of values in a column for a data policy.](/tableau/current/en-us/server-linux/en-us/Img/ipa_Panes_show_16px_medium.png) to show the range of values for a column, including which values show and which are filtered out by the data policy. Select one or two columns that are good indicators that the policy is correctly filtering the data.

## Who can do this

To test a virtual connection, you must

- have credentials to the database that the virtual connection connects to, and
- be a server or site administrator, or a Creator.

## Next step

After you test your data policy, when you're ready to share the virtual connection with others, see [Publish a Virtual Connection and Set Permissions](https://help.tableau.com/current/server-linux/en-us/dm_vconn_publish_save.htm).