You can use this call to add specific users to a project and set their privileges. Note that you need to specify user's SBG platform username when adding to the project.

project_member_add(
  auth_token = NULL,
  project_id = NULL,
  username = NULL,
  copy = FALSE,
  write = FALSE,
  execute = FALSE,
  admin = FALSE,
  ...
)

Arguments

auth_token

auth token

project_id

Name of the project you wish to add user to.

username

SBG platform username for a user you wish to add to the project.

copy

Logical. Ability to download or copy files.

write

Logical. Ability to create/edit/delete project objects.

execute

Logical. Ability to run tasks.

admin

Logical. User has all rights on the project (including changing).

...

parameters passed to sbgapi function

Value

parsed list of the returned json

Examples

token = '420b4672ebfc43bab48dc0d18a32fb6f' req = project_member_add(token, project_id = '88fc89c1-cfcd-46ed-a830-6a2fc110c628', username = 'testuser', write = TRUE)
#> Error: HTTP Status 404: /1.1/project/88fc89c1-cfcd-46ed-a830-6a2fc110c628/members not found