tde:column-set-permissions( $schema as xs:string, $view as xs:string, $column as xs:string, $permissions as item() ) as empty-sequence()
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.
xquery version "1.0-ml"; import module namespace tde = "http://marklogic.com/xdmp/tde" at "/MarkLogic/tde.xqy"; tde:column-set-permissions("schema1", "view1", "column1", <permissions xmlns="http://marklogic.com/xdmp/tde"> <role-name>els-role-1</role-name> <role-name>els-role-2</role-name> </permissions>) (: Sets the permissions of the protected column, column1. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.