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

Argument Description
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

updateGrant(
  databaseId = "cxy123", user = 165,
  resourcePermissions(
    add_record = TRUE,
    edit_record = TRUE,
    delete_record = TRUE
  )
)
Next item
updateRecord