updateRole

Description

Updates a role's definition in the database See permissions for more details.

Usage

updateRole(databaseId, role)

Arguments

Argument Description
databaseId the id of the database
role the role definition

Examples

updateRole("cxy123", list(
  id = "rp",
  label = "Reporting partner",
  permissions = permissions(
    view = "ck5dxt1712 == @user.partner",
    edit_record = "ck5dxt1712 == @user.partner",
    export_records = TRUE
  ),
  parameters = list(
    list(
      parameterId = "partner",
      label = "Partner",
      range = "ck5dxt1712"
    )
  ),
  filters = list(
    list(
      id = "partner",
      label = "partner is user's partner",
      filter = "ck5dxt1712 == @user.partner"
    )
  )
))
Next item
updateUserRole