Loading TOC...

MarkLogic Server 11.0 Product Documentation
admin.groupExists

admin.groupExists(
   config as element(configuration),
   group-name as String
) as Boolean

Summary

This function determines whether or not the specified Group exists. Returns true if the Group exists, otherwise false is returned.

Parameters
config A configuration specification, typically as returned from one of the Admin module functions.
group-name The name of the group to check.

Example

  
  const admin = require('/MarkLogic/admin.xqy');
  const config = admin.getConfiguration()
  admin.groupExists(config, "Default")

   //Returns true, if the Default group exists. 
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.