tde.columnSetPermissions( schema as String, view as String, column as String, permissions as Item ) as null
This function sets the permissions of a protected column. Any previous permissions on the column are removed.
tde-admin
role is required to call this function.
Note that this is a library function
that requires that you import the tde.xqy
module.
If the specified protected column is not found, a TDE-COLUMNNOTFOUND
error is raised.
declareUpdate(); const tde = require("/MarkLogic/tde.xqy"); tde.columnSetPermissions("schema1", "view1", "column1", ["els-role-1", "els-role-2", "els-role-3"])
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.