Skip to contents

Add a list of users with specific access to a signature in the database

Usage

addUserToSignature(
  conn_handler,
  signature_id,
  user_name,
  access_type = c("owner", "editor", "viewer"),
  verbose = TRUE
)

Arguments

conn_handler

A handler uses to establish connection to the database obtained from SigRepo::newConnhandler() (required)

signature_id

An ID of signature in the database (required)

user_name

A list of users to be added to a signature (required)

access_type

A list of permissions to be given to users in order for them to view or manage the signature in the database (required).

There are three types of permissions:

owner has Read and Write access to their own uploaded signatures. editor has Read and Write access to signatures that other users were given them access to. viewer has ONLY Read access to signatures that other users were given them access to.

verbose

a logical value indicates whether or not to print the diagnostic messages. Default is TRUE.