updateRole

Description

Updates a role's definition in the database

Usage

updateRole(databaseId, role)

Arguments

ArgumentDescription
databaseIdthe id of the database
rolethe role definition,

Examples

updateRole("cxy123", list(
   id = "rp",
   label = "Reporting partner",
  permissions = list(
  list(
    operation = "VIEW",
    filter = "ck5dxt1712 == @user.partner"),
  list(
    operation = "EDIT_RECORD",
    filter = "ck5dxt1712 == @user.partner",
    securityCategories = list()
  ),
  list(
    operation = "EXPORT_RECORDS"
  )
),
parameters = list(
  list(
    parameterId = "partner",
    label = "Partner",
    range = "ck5dxt1712"
  )
),
filters = list(
  list(id = "partner",
       label = "partner is user's partner",
       filter = "ck5dxt1712 == @user.partner")
)
))