Create a user

rt_user_create(
  name,
  password = NULL,
  email_address = NULL,
  real_name = NULL,
  organization = NULL,
  privileged = NULL,
  disabled = NULL,
  ...
)

Arguments

name

(character) Optional. User name

password

(character) The password

email_address

(character) Optional. User email

real_name

(character) Optional. User real name

organization

(character) Optional. User organization

privileged

(numeric) Optional. User privilege status

disabled

(numeric) Optional. User disabled status

...

Other arguments passed to rt_POST

Value

(numeric) The ID of the newly-created user

Examples

if (FALSE) { # Create a barebones user with just a name rt_user_create("Some Person") # Create user that also has an email address rt_user_create("Person", email_address = "person@example.com") }