See
=> example G. Grant UNMASK permission on a column for the correct syntax.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi All,
I am trying to grant unmask access for a security group for a specific table and for a specific column however im getting a the below error message.
query executed.
GRANT UNMASK ON schemaName.tablename(ColumnName) TO [Account that requires access, in my case a security group]
error message :
Msg 102, Level 15, State 1, Line 0
Incorrect syntax near 'UNMASK'.
Anyone experience this issue and how does one resolve this?
Regards
See
=> example G. Grant UNMASK permission on a column for the correct syntax.
Hi,Kevin
Starting from SQL Server 2022, dynamic data masking supports granting UNMASK permission at the column level.
Details refer to https://learn.microsoft.com/en-us/sql/relational-databases/security/dynamic-data-masking?view=sql-server-ver16#granular
So in SQL Server 2017, you cannot grant UNMASK permission on a specific column.
The executable statement is as follows:
GRANT UNMASK TO [UserOrGroupName];