Skip to contents

Revokes all privileges from a user in regard to the specified base on a NocoDB server via its DELETE /api/v2/meta/bases/{id_base}/users/{id_user} API endpoint.

Usage

delete_base_user(
  id_user,
  id_base = base_id(origin = origin, email = email, password = password, api_token =
    api_token),
  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"),
  quiet = FALSE
)

Arguments

id_user

character(1)
NocoDB user identifier as returned by user_id().

id_base

character(1)
NocoDB base identifier as returned by base_id().

origin

character(1)
NocoDB server origin.

email

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 over email and password if provided.

quiet

logical(1)
Whether or not to suppress printing status output from internal processing.

Value

id_user, invisibly.

Details

Despite the endpoint name, the user is not actually deleted but is instead revoked any assigned role in regard to id_base, which has the same effect as assigning the "no-access" role.