MarkLogic 9 Product Documentation
sec.userGetExternalNames

sec.userGetExternalNames(
   user-name as String
) as Sequence

Summary

This function returns the external LDAP group names assigned to the named user.

Parameters
user-name The name of the user.

Example



(: execute this against the security database :)
xquery version "1.0-ml"; 
 
import module namespace sec = "http://marklogic.com/xdmp/security" 
      at "/MarkLogic/security.xqy";

sec:user-get-external-names("user1")

(: Returns the external names for the user "user1". :) 
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy