I am in the process of masking some data in a SQL Server 2017 database. I have masked a column with this statement:
ALTER TABLE lEmployee
ALTER COLUMN FirstName nvarchar(160)
MASKED WITH (FUNCTION = 'partial(2,"xxx",2)')
And I can see in sys.columns
that this is now masked.
Now in the application, the data is not showing as masked (neither is it in the db when logged in as that user). I have also run the below to ensure the user does not have this permission.
REVOKE UNMASK TO testuser
Can anyone advise what the minimum permissions are needed so that the data masking works as expected.
Thank you in advance