Description
Creates a role assignment object
Usage
roleAssignment(roleId, roleParameters = list(), roleResources)
Arguments
Argument | Description |
---|---|
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")
)
}