Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.79 KB

File metadata and controls

52 lines (33 loc) · 1.79 KB
title description ms.reviewer ms.topic ms.date
.show table policy restricted_view_access command
Learn how to use the `.show table policy restricted_view_access` command to display the details of the table's restricted view access policy.
yonil
reference
08/11/2024

.show table policy restricted_view_access command

[!INCLUDE applies] [!INCLUDE fabric] [!INCLUDE azure-data-explorer]

Display the optional table restricted view access policy. When this policy is enabled for a table, data in the table can only be queried by principals who have an UnrestrictedViewer role in the database. Deleting a policy is similar to disabling a policy.

Permissions

You must have at least Database User, Database Viewer, or Database Monitor permissions to run these commands. For more information, see role-based access control.

Syntax

Display the policy for a table:

.show table TableName policy restricted_view_access

Display the policy for all tables:

.show table * policy restricted_view_access

[!INCLUDE syntax-conventions-note]

Parameters

Name Type Required Description
TableName string ✔️ The name of the table for which to show the policy details.

Returns

Returns a JSON representation of the policy.

Examples

Display the policy for a table:

.show table Table1 policy restricted_view_access

Display the policies for all tables:

.show table * policy restricted_view_access