Microsoft SQL Server Dynamic data masking Controlling who can see unmasked data

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

You can grant in-privileged users right to see unmasked values using the following statement:

GRANT UNMASK TO MyUser

If some user already has unmask permission, you can revoke this permission:

REVOKE UNMASK TO MyUser


Got any Microsoft SQL Server Question?