Loading TOC...

MarkLogic Server 11.0 Product Documentation
sec:remove-user

sec:remove-user(
   $user-name as xs:string
) as empty-sequence()

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


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

sec:remove-user("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.