I need to run a couple of functions with a specific & custom role that I created which is similar to admin role. Is there any functionality in MarkLogic where I can call a function with a specifc role? Is there any examples for the same?
I need to run a couple of functions with a specific & custom role that I created which is similar to admin role. Is there any functionality in MarkLogic where I can call a function with a specifc role? Is there any examples for the same?
This feature exists and is called an AMP (temporary amplification of privileges)
Please note: For me, I always also make sure the the calling user is meant to have access to that function. This can be achieved with a en execute priv on the calling role and a security assert in the executed function.
Resources: