project_member_add: Add a user to the project with appropriate permissions

Description Usage Arguments Value Examples

Description

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.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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

1
2
3
4
token = '420b4672ebfc43bab48dc0d18a32fb6f'
req = project_member_add(token,
                project_id = '88fc89c1-cfcd-46ed-a830-6a2fc110c628',
                username = 'testuser', write = TRUE)

road2stat/sbgr documentation built on March 9, 2021, 4:33 a.m.