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.
Whether or not to subscribe the signed up user to the NocoDB newsletter.
- hostname
NocoDB server hostname. A character scalar.
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
andpassword
if provided.
API errors
If you did provide an
invite_token
and encounter aNot allowed to signup
error, it means the provideduser_email
does not match theinvite_token
.If you did not provide an
invite_token
and encounter aNot 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 providedinvite_token
is either invalid or has already been used to sign up.
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()
,
update_base_user()
,
update_user()
,
user_id()
,
users()
,
validate_user_email()
,
whoami()
Other functions to manage NocoDB authentication:
api_tokens()
,
assert_super_admin()
,
create_api_token()
,
delete_api_token()
,
is_signed_in()
,
is_super_admin()
,
refresh_sign_in()
,
req_auth()
,
sign_in()
,
sign_out()