MarkLogic 12 EA 1 Product Documentation
sec:user-set-external-names

sec:user-set-external-names(
   $user-name as xs:string,
   $external-name as xs:string*
) as empty-sequence()

Summary

This function sets the external names for the named user.

Parameters
user-name The name of the user for which to set the external name.
external-name A sequence of one or more external names to be set for 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-set-external-names("Jim", ("CN=TestUser 1,CN=Users,DC=DUDE,DC=LOCAL"))

(: Sets the external name for the user, "Jim", to 
   "CN=TestUser 1,CN=Users,DC=DUDE,DC=LOCAL". :)
 
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy