
sec:user-set-password-extra( $user-name as xs:string, $extra as element(sec:password-extra) ) as empty-sequence()
This function sets extra information for the specified user. If the user does not exist, an exception is thrown.
| Parameters | |
|---|---|
| user-name | The name of the user for whom to set the extra information. |
| extra | The extra information to be set for the user. |
xquery version "1.0-ml";
import module namespace sec = "http://marklogic.com/xdmp/security"
at "/MarkLogic/security.xqy";
let $extra := <sec:password-extra>
<p>Change this password in 30 days</p>
</sec:password-extra>
return sec:user-set-password-extra("Jim", $extra)
(: Sets the extra information for the user, Jim. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.