ndex_user_change_password: Change Password

View source: R/ndex_users.R

ndex_user_change_passwordR Documentation

Change Password

Description

Changes the authenticated user's password to the new password

Usage

ndex_user_change_password(ndexcon, userId, password)

Arguments

ndexcon

object of class NDExConnection linkndex_connect

userId

character; unique ID of the user

password

character; New password

Value

Empty string on success, else error

REST query

GET: ndex_config$api$user$password$change

Note

Requires an authorized user! (ndex_connect with credentials)

Compatible to NDEx server version 2.0

Examples

## Establish a server connection with credentials 
# ndexcon = ndex_connect('MyAccountName', 'MyPassword')
## Find user and get its id
# user = ndex_find_user_byName(ndexcon, 'SomeUserName')
# userId = user$externalId
## Change user password
# ndex_user_change_password(ndexcon, userId, 'SuperSaveNewPassword')
NULL

frankkramer-lab/ndexr documentation built on April 4, 2023, 7:19 p.m.