sec:user-exists

sec:user-exists(
   $user-name as xs:string
) as xs: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


  xquery version "1.0-ml"; 

  import module namespace sec = "http://marklogic.com/xdmp/security" 
      at "/MarkLogic/security.xqy";

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