Skip to contents

Signs up the specified user on a NocoDB server via its POST /api/v1/auth/user/signup API endpoint.

If sign-up is restricted to invitees only, the user must have been invited before (via invite_user() or invite_base_user()) and an invite_token must be provided. Otherwise, the user is created straightaway (with the "org-level-viewer" role assigned).

Usage

sign_up_user(
  user_email,
  user_password,
  invite_token = NULL,
  subscribe_to_newsletter = FALSE,
  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 to sign up. A character scalar.

user_password

Password of the user to sign up. A character scalar.

invite_token

Invite token of the user to sign up. A character scalar.

subscribe_to_newsletter

Whether or not to subscribe the signed up user to the NocoDB newsletter.

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

The generated access token for the signed up user as a character scalar, invisibly.

API errors

  • If you did provide an invite_token and encounter a Not allowed to signup error, it means the provided user_email does not match the invite_token.

  • If you did not provide an invite_token and encounter a Not allowed to signup error, it means sign-up of new users is restricted to invitees only.

  • If you encounter an Invalid invite url error, it means the provided invite_token is either invalid or has already been used to sign up.