updateGrant: updateGrant

View source: R/databases.R

updateGrantR Documentation

updateGrant

Description

Adds or updates a grant for a user to a specific resource. See resourcePermissions for how to set resource-level permissions for a grant.

Usage

updateGrant(databaseId, userId, resourceId, permissions)

Arguments

databaseId

the id of the database

userId

the (numeric) id of the user to update

resourceId

the id of the form or folder

permissions

the permissions to grant to the user for the given resource

Examples

## Not run: 
updateGrant(
  databaseId = "cxy123", user = 165,
  resourcePermissions(
    add_record = TRUE,
    edit_record = TRUE,
    delete_record = TRUE
  )
)

## End(Not run)


bedatadriven/activityinfo-R documentation built on Dec. 21, 2024, 8:23 a.m.