iadmin {rirods}R Documentation

The Administration Interface to iRODS

Description

Note that this function can only be used with admin rights.

Usage

iadmin(
  name,
  password = character(1),
  action = c("create_user", "set_password", "remove_user"),
  role = c("rodsuser", "groupadmin", "rodsadmin"),
  verbose = FALSE
)

Arguments

name

Name of user to be added.

password

Password to be added.

action

The action: "create_user", "remove_user", or "set_password".

role

Role of user: "rodsuser", "groupadmin", and "groupadmin".

verbose

Show information about the http request and response. Defaults to FALSE.

Value

Invisible http status.

Examples


is_irods_demo_running()

# demonstration server (requires Bash, Docker and Docker-compose)
# use_irods_demo()

# connect project to server
create_irods("http://localhost:9001/irods-http-api/0.2.0")

# authentication
iauth("rods", "rods")

# add user
iadmin("Alice", action = "create_user", role = "rodsuser")

# add user password
iadmin("Alice", "pass", action = "set_password",  role = "rodsuser")

# delete user
iadmin("Alice", action = "remove_user", role = "rodsuser")



[Package rirods version 0.2.0 Index]