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.   
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy