
xdmp:document-add-permissions( $uri as xs:string, $permissions as element(sec:permission)* ) as empty-sequence()
Adds the given permissions to the given document or directory. The user must have update or insert permissions on the document.
| Parameters | |
|---|---|
| uri | The document URI. |
| $permissions | Permission elements. |
xdmp:document-add-permissions(
"/example.xml",
(xdmp:permission("development", "update"),
xdmp:permission("qa", "read")))