
sec:remove-user( $user-name as xs:string ) as empty-sequence()
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. |
http://marklogic.com/xdmp/privileges/remove-user
This function must be executed against the security database.
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: Get the most useful answers to questions from the MarkLogic community, or ask your own question.