addDatabaseUser

Description

Invites a user to a database.

Usage

addDatabaseUser(
  databaseId,
  email,
  name,
  locale = NA_character_,
  roleId,
  roleParameters = list(),
  roleResources = list(databaseId)
)

Arguments

ArgumentDescription
databaseIdthe id of the database to which they should be added
emailthe user's email
namethe user's name (only used if they do not already have an ActivityInfo account)
localethe locale ("en', "fr", "ar", etc) to use inviting the user (only used if they do not already have an ActivityInfo account)
roleIdthe id of the role to assign to the user
roleParametersa named list containing the role parameter values
roleResourcesa list of folders in which this role should be assigned (or the databaseId if they should have this role in the whole database)