MarkLogic 12 EA 1 Product Documentation
sec.userExists

sec.userExists(
   user-name as String
) as Boolean

Summary

This function returns true if the specified user exists in the security database.

Parameters
user-name The user name.

Required Privileges

http://marklogic.com/xdmp/privileges/get-user

Usage Notes

This function must be executed against the security database.

Example


  
  const sec = require('/MarkLogic/security.xqy');

  sec.userExists("my-user")
      
Powered by MarkLogic Server | Terms of Use | Privacy Policy