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,
origin = funky::config_val("origin"),
email = funky::config_val("email"),
password = funky::config_val("password"),
api_token = funky::config_val("api_token")
)Arguments
- user_email
character(1)
E-mail address of the user to sign up.- user_password
character(1)
Password of the user to sign up.- invite_token
character(1)
Invite token of the user to sign up.logical(1)
Whether or not to subscribe the signed up user to the NocoDB newsletter.- origin
character(1)
NocoDB server origin.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 overemailandpasswordif provided.
API errors
If you did provide an
invite_tokenand encounter aNot allowed to signuperror, it means the provideduser_emaildoes not match theinvite_token.If you did not provide an
invite_tokenand encounter aNot allowed to signuperror, it means sign-up of new users is restricted to invitees only.If you encounter an
Invalid invite urlerror, it means the providedinvite_tokenis 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()