Skip to contents

Returns the identifier of the user with the specified display name on a NocoDB server.

Usage

user_id(
  user_email,
  id_base = NULL,
  hostname = pal::pkg_config_val("hostname"),
  email = pal::pkg_config_val("email"),
  password = pal::pkg_config_val("password"),
  api_token = pal::pkg_config_val("api_token")
)

Arguments

user_email

E-mail address of the user. A character scalar.

id_base

NocoDB base identifier as returned by base_id(). A character scalar.

hostname

NocoDB server hostname. A character scalar.

email

E-mail address of the NocoDB user to authenticate with.

password

Password of the NocoDB user to authenticate with.

api_token

NocoDB API token. Takes precedence over email and password if provided.

Value

User identifier as a character scalar.

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_tokens.