oadmin.user_exists {opalr} | R 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)
[Package opalr version 3.4.1 Index]