sec.credentialSetTargets( credential-name as String, targets as element(sec.credentialTarget)[] ) as null
This function updates the targets for the specified credential.
Parameters | |
---|---|
credential-name | The name of the credential. |
targets | The new set of targets, if any. |
http://marklogic.com/xdmp/privileges/credential-set-targets
This function must be executed against the security database.
declareUpdate(); const sec = require('/MarkLogic/security.xqy'); sec.credentialSetTargets("my-secure-credential", sec.uriCredentialTarget("my-pattern", "digest"));
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.