Learn R Programming

opalr (version 3.4.2)

oadmin.user_enable: Enable a user

Description

Enable or disable a user from Opal internal users registry.

Usage

oadmin.user_enable(opal, name, enabled = TRUE)

Arguments

opal

Opal object.

name

User name

enabled

Logical to enable a user.

See Also

Other user functions: oadmin.user_add(), oadmin.user_delete(), oadmin.user_exists(), oadmin.user_profile_delete(), oadmin.user_profiles(), oadmin.user_reset_password(), oadmin.users()

Examples

Run this code
if (FALSE) {
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
pwd <- oadmin.user_add(o, "foo", groups = c("datashield", "CNSIM"))
oadmin.user_enable(o, "foo", enabled = FALSE)
opal.logout(o)
}

Run the code above in your browser using DataLab