xdmp:user-last-login( [$user as xs:unsignedLong] ) as element(last-login)?
Returns the last-login node for the specified user ID. If no user ID is specified, then the current user is assumed. If no last-login database is specified in the App Server configuration, then the empty sequence is returned.
Parameters | |
---|---|
user | A user ID. |
xdmp:user-last-login(xdmp:user("sylvester")) => <last-login xmlns="http://marklogic.com/xdmp/last-login"> <user-id>1134406269933351074</user-id> <last-successful-login>2008-03-19T15:41:08</last-successful-login> <last-unsuccessful-login>2008-03-19T15:40:45</last-unsuccessful-login> <number-unsuccessful-logins>0</number-unsuccessful-logins> <display-last-login>true</display-last-login> </last-login>
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.