updateGrant

Description

Adds or updates a grant for a user to a specific resource.

Usage

updateGrant(databaseId, userId, resourceId, permissions)

Arguments

ArgumentDescription
databaseIdthe id of the database
userIdthe (numeric) id of the user to update
resourceIdthe id of the form or folder
permissionsthe 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))