admin.groupGetAllowDynamicHosts( config as element(configuration), group-id as (Number|String) ) as Boolean
Returns whether the group is configured to accept new dynamic hosts to join this group.
Parameters | |
---|---|
config | A configuration specification, typically as returned from one of the Admin module functions. |
group-id | The ID of the group to which the dynamic host will be added. |
http://marklogic.com/xdmp/privileges/admin/group
http://marklogic.com/xdmp/privileges/admin/group/{id}
const admin = require('/MarkLogic/admin.xqy'); const config = admin.getConfiguration(); const groupid = admin.groupGetId(config, "Default"); admin.groupGetAllowDynamicHosts(config, groupid);