MarkLogic 12 EA 1 Product Documentation
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."   
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy