Skip to contents

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

Usage

iadmin(
  action,
  target,
  arg2 = character(1),
  arg3 = character(1),
  arg4 = character(1),
  arg5 = character(1),
  arg6 = character(1),
  arg7 = character(1),
  verbose = FALSE
)

Arguments

action

The action: add, modify, or remove.

target

The subject of the action: user, zone, resource, childtoresc,

arg2

arg2

arg3

arg3

arg4

arg4

arg5

arg5

arg6

arg6

arg7

arg7

verbose

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

Value

Invisible http status.

Examples

is_irods_demo_running()
#> [1] TRUE

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

# connect project to server
create_irods("http://localhost/irods-rest/0.9.3", "/tempZone/home")

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

# add user
iadmin(action = "add", target = "user", arg2 = "Bob", arg3 = "rodsuser")

# add user password
iadmin(action = "modify", target = "user", arg2 = "Bob", arg3 = "password",
  arg4 = "pass")

# delete user
iadmin(action = "remove", target = "user", arg2 = "Bob")