Is there a MarkLogic JavaScript API to Create Users and Add Roles?

时间:2016-04-07 10:36:10

标签: marklogic marklogic-8

The XQuery Security Admin API info is posted here.

http://docs.marklogic.com/sec:create-user

I may be missing something but I don't see the equivalent JavaScript Security Admin APIs.

Is this the case? If so can we expect this in the next MarkLogic release?

1 个答案:

答案 0 :(得分:5)

sec:*函数在XQuery库模块中实现

/MarkLogic/security.xqy

所述

http://docs.marklogic.com/sec

与任何XQuery库模块一样,安全模块可以在服务器端JavaScript中导入,并且可以调用这些函数:

http://docs.marklogic.com/guide/jsref/functions#id_67468

希望有帮助,