Loading TOC...

MarkLogic 9 Product Documentation
sec.userSetPasswordExtra

sec.userSetPasswordExtra(
   user-name as String,
   extra as element(sec.passwordExtra)
) as null

Summary

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.

Example


  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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.