Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to: ✅ SQL analytics endpoint and Warehouse in Microsoft Fabric
Column-level security (CLS) in Microsoft Fabric allows you to control access to columns in a table based on specific grants on these tables. For more information, see Column-level security in Fabric data warehousing.
This guide will walk you through the steps to implement column-level security in a Warehouse or SQL analytics endpoint.
Before you begin, make sure you have the following:
Identify user or roles and the data tables you want to secure with column-level security.
Implement column-level security with the GRANT T-SQL statement and a column list. For simplicity of management, assigning permissions to roles is preferred to using individuals.
-- Grant select to subset of columns of a table
GRANT SELECT ON YourSchema.YourTable
(Column1, Column2, Column3, Column4, Column5)
TO [SomeGroup];
Replace YourSchema
with the name of your schema and YourTable
with the name of your target table.
Replace SomeGroup
with the name of your User/Group.
Replace the comma-delimited columns list with the columns you want to give the role access to.
Repeat these steps to grant specific column access for other tables if needed.
SELECT * FROM YourSchema.YourTable;
Regularly monitor and update your column-level security policies as your security requirements evolve. Keep track of role assignments and ensure that users have the appropriate access.
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today