ndex_user_change_password: Change Password

Description Usage Arguments Value REST query Note Examples

View source: R/ndex_users.R

Description

Changes the authenticated user's password to the new password

Usage

1
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

1
2
3
4
5
6
7
8
## 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

ndexr documentation built on March 13, 2021, 2 a.m.