
xdmp.userLastLogin() as Object?
Returns the last-login node for the current user. If no last-login database is specified in the App Server configuration, then the empty sequence is returned.
xdmp.userLastLogin()
=>
{
"userId":"1134406269933351074",
"lastSuccessfulLogin":"2008-03-19T15:41:08",
"lastUnsuccessfulLogin":"2008-03-19T15:40:45",
"numberUnsuccessfulLogins":0,
"displayLastLogin":true
}
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.