MarkLogic 9 Product Documentation
flexrep:configuration-target-get-external-user

flexrep:configuration-target-get-external-user(
   $cfg as element(flexrep:configuration),
   $target-id as xs:unsignedLong
) as element(extusr:external-user)?

Summary

This function returns the external user information for a target, if any exists. There is no corresponding set function because the external user information is automatically added by configuration-target-set-user-id

Parameters
cfg The replication configuration.
target-id The target ID.

Example

 
xquery version "1.0-ml"; 
  
import module namespace flexrep = "http://marklogic.com/xdmp/flexible-replication" 
      at "/MarkLogic/flexrep.xqy";

flexrep:configuration-target-get-external-user($cfg, $target-id)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy