sec:user-set-description( $user-name as xs:string, $description as xs:string ) as empty-sequence()
Changes the description of the user identified by $user-name to $description.
Parameters | |
---|---|
user-name | The name of the user. |
description | A description of the user. |
http://marklogic.com/xdmp/privileges/user-set-description
if the current user is not $user-name.
This function must be executed against the security database.
xquery version "1.0-ml"; import module namespace sec="http://marklogic.com/xdmp/security" at "/MarkLogic/security.xqy"; sec:user-set-description( "Bill", "Senior QA Engineer") (: Changes the description of the user, "Bill." :)