sec.userExists( user-name as String ) as Boolean
This function returns true if the specified user exists in the security database.
Parameters | |
---|---|
user-name | The user name. |
http://marklogic.com/xdmp/privileges/get-user
This function must be executed against the security database.
const sec = require('/MarkLogic/security.xqy'); sec.userExists("my-user")
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.