roleAssignment: roleAssignment

View source: R/databases.R

roleAssignmentR Documentation

roleAssignment

Description

Creates a role assignment object

Usage

roleAssignment(roleId, roleParameters = list(), roleResources)

Arguments

roleId

the id of the role to assign to the user

roleParameters

a named list of role parameters, optional

roleResources

a list of resources (database id, folder id, form id, or report id) to assign to this user. Using the database id assigns all resources to this user

Examples

{
  # Role assignment for a reporting role with a partner parameter
  roleAssignment(
    roleId = "rp",
    roleParameters = list(partner = reference(formId = "cxadsfs32", recordId = "c3423423")),
    roleResources = "cxa99335"
  )


  # Role assignment for an administrator role without any role parameters
  roleAssignment(
    roleId = "admin",
    roleResources = c("cxa99335", "c8234234")
  )
}


bedatadriven/activityinfo-R documentation built on Dec. 21, 2024, 8:23 a.m.