Loading TOC...

sec:user-set-description

sec:user-set-description(
   $user-name as xs:string,
   $description as xs:string
) as empty-sequence()

Summary

Changes the description of the user identified by $user-name to $description.

Parameters
user-name The name of the user.
description A description of the user.

Required Privileges

http://marklogic.com/xdmp/privileges/user-set-description if the current user is not $user-name.

Usage Notes

This function must be executed against the security database.

Example


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

sec:user-set-description(
    "Bill",
    "Senior QA Engineer")
  
(:  Changes the description of the user, "Bill." :)  
  

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