Returns the identifier of the user with the specified display name
on a NocoDB server.
Usage
user_id(
user_email,
id_base = NULL,
origin = pal::pkg_config_val("origin"),
email = pal::pkg_config_val("email"),
password = pal::pkg_config_val("password"),
api_token = pal::pkg_config_val("api_token")
)
Arguments
- user_email
character(1)
E-mail address of the user.- id_base
character(1)
NocoDB base identifier as returned bybase_id()
.- origin
character(1)
NocoDB server origin.character(1)
E-mail address of the NocoDB user to authenticate with.- password
character(1)
Password of the NocoDB user to authenticate with.- api_token
character(1)
NocoDB API token. Takes precedence overemail
andpassword
if provided.
Details
If id_base
is provided, the user ID is determined via base_users()
, otherwise via users()
. The latter requires super admin credentials and does not
support api_token
s.
See also
Other functions to manage NocoDB users:
add_user()
,
base_users()
,
delete_base_user()
,
delete_user()
,
invite_base_user()
,
invite_user()
,
resend_base_user_invitation()
,
sign_up_user()
,
update_base_user()
,
update_user()
,
users()
,
validate_user_email()
,
whoami()