Loading TOC...

sec:user-get-external-names

sec:user-get-external-names(
   $user-name as xs:string
) as xs:string*

Summary

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

Parameters
user-name The name of the user.

Required Privileges

http://marklogic.com/xdmp/privileges/user-get-external-names

Usage Notes

If a user with name equal to $user-name is not found, an error is returned.

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". :) 
    

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