oadmin.user_exists: Check user exists

View source: R/opal.users.R

oadmin.user_existsR Documentation

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

## Not run: 
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)

## End(Not run)

opalr documentation built on Oct. 6, 2023, 5:08 p.m.