Loading TOC...

MarkLogic 10 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)
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.