Loading TOC...

sec.userSetDescription

sec.userSetDescription(
   $user-name as String,
   $description as String
) as null

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


declareUpdate();
 
const sec = require('/MarkLogic/security.xqy');

sec.userSetDescription(
    "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.