updateGrant

Description

Adds or updates a grant for a user to a specific resource. See permissions for how to set 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,
  permissions(
    add_record = TRUE,
    edit_record = TRUE,
    delete_record = TRUE
  )
)
Next item
updateRecord