Reputation: 21
what privileges required for executing a function in marklogic and i need to run below function with a new user
Thanks
Upvotes: 0
Views: 65
Reputation: 7770
The privileges are different depending on the function. For those requiring a specific privilege. it is listed in the API doc for each function under "Required Privileges"
In the case of the delete, I do not believe there is a special execute privilege needed. However, you do need permissions on the document allowing you to delete the document.
For xdmp:eval, the privilege is:
http://marklogic.com/xdmp/privileges/xdmp-eval
This is listed on the API doc here: https://docs.marklogic.com/xdmp:eval
Upvotes: 4