# 22. Virtuoso Functions Guide - user_set_password

Chapter Contents | Prev | Next
Keyword Search:
www.openlinksw.com
docs.openlinksw.com
Book Home
Contents
Preface
Virtuoso Functions Guide
Administration
db.dba.vacuum
user_change_password
user_create
user_drop
user_get_option
user_grant_role
user_revoke_role
user_role_create
user_role_drop
user_set_option
user_set_qualifier
cfg_item_count
cfg_item_name
cfg_item_value
cfg_section_count
cfg_section_name
cfg_write
checkpoint_interval
disconnect_user
fk_check_input_value...
log_enable
log_text
prof_enable
prof_sample
status
sys_lockdown
sys_stat
system
trace_status
user_set_password
virtuoso_ini_path
Aggregate Functions
Array Manipulation
BPEL APIs
Backup
Compression
Cursor
Date & Time Manipulation
Debug
Dictionary Manipulation
Encoding & Decoding
File Manipulation
Free Text
Hashing / Cryptographic
LDAP
Locale
Mail
Miscellaneous
Number
Remote SQL Data Source
Replication
SOAP
SQL
String
Transaction
Type Mapping
UDDI
User Defined Types & The CLR
Virtuoso Java PL API
Virtuoso Server Extension Interface (VSEI)
Web Server & Internet
XML
XPATH & XQUERY
Functions Index

## user_set_password

Allows dba to change a user's password.
user_set_password (in user_name string, in new_password string);
Description

Explicitly sets a new password for the SQL account user_name to new_password. Only users in the dba group may execute this function. It allows the database administrator to reset lost passwords of SQL accounts. The new password will be set without further comfirmation, so the DBA must be sure of the new password.

Parameters
user_name – SQL user account name to change.
new_password – New password for the user as plain text.
Errors

Parameter data type checking errors

SQL Code | Error Message | Virtuoso Code
--- | --- | ---
42000 | Function user_set_password restricted to dba group | SR285
42000 | The user <user_name> does not exist | SR286
42000 | The new password for <user_name> cannot be empty | SR287