Loading TOC...

MarkLogic Server 11.0 Product Documentation
sec.removeUser

sec.removeUser(
   user-name as String
) as null

Summary

Removes the user with name $user-name.

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/remove-user

Usage Notes

This function must be executed against the security database.

Example


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

sec.removeUser("Jim")
 
// Removes the user, named Jim.   
  

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