Skip to contents

Updates the metadata of the specified user on a NocoDB server via its PATCH /api/v1/user/profile API endpoint.

Usage

update_user(
  display_name = NULL,
  hostname = pal::pkg_config_val("hostname"),
  email = pal::pkg_config_val("email"),
  password = pal::pkg_config_val("password"),
  api_token = NULL
)

Arguments

display_name

Name to be displayed for the user in NocoDB.

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

A tibble with metadata about the updated NocoDB user, invisibly.

Details

The user is determined based on api_token or email and password (the former takes precedence).

In order for other API endpoints to reflect the updated metadata, NocoDB's internal state must update, which is only triggered by this function iff the user to be updated is the super admin and authentication is done via email and password instead of api_token.