Learn R Programming

sbgr (version 1.0.0)

project_member_add: Add a user to the project with appropriate permissions

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

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

Run this code
token = '420b4672ebfc43bab48dc0d18a32fb6f'
req = project_member_add(token,
                project_id = '88fc89c1-cfcd-46ed-a830-6a2fc110c628',
                username = 'testuser', write = TRUE)

Run the code above in your browser using DataLab