Learn R Programming

opalr (version 3.4.2)

oadmin.user_exists: Check user exists

Description

Check whether a user exists, either in the internal user registry (see oadmin.users) or as an external user that already logged in (see oadmin.user_profiles).

Usage

oadmin.user_exists(opal, name)

Arguments

opal

Opal object.

name

User name

See Also

Other user functions: oadmin.user_add(), oadmin.user_delete(), oadmin.user_enable(), 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')
if (!oadmin.user_exists(o, "foo"))
  oadmin.user_add(o, "foo", password = "bar123")
opal.logout(o)
}

Run the code above in your browser using DataLab