MarkLogic Server 11.0 Product Documentation
sec.userSetExternalNames

sec.userSetExternalNames(
   user-name as String,
   external-name as String[]
) as null

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


    declareUpdate();
    const sec = require('/MarkLogic/security.xqy');
    
    sec.userSetExternalNames("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