Loading TOC...

MarkLogic Server 11.0 Product Documentation
sec:user-get-description

sec:user-get-description(
   $user-name as xs:string
) as xs:string

Summary

Returns the user's description. If a user with name equal to $user-name is not found, an error is returned.

Parameters
user-name The name of a user.

Required Privileges

http://marklogic.com/xdmp/privileges/user-get-description
or the current user is the same as the $user-name.

Usage Notes

This function must be executed against the security database.

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-description("Jim")
=>

Jim the temp
  

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