When setting permissions, any permissions left undefined will be enabled by default. If no permissions are included at all, then a default set of predefined permissions will be used. If a division permission is disabled at the organization level, then it will be disabled at the division level regardless of its state.
create_division(name, division_admins = NULL, permissions = NULL)
name | the division name |
---|---|
division_admins | A JSON array of user ids to make division admins |
permissions | A JSON object defining the division permissions. |
The id of the created division
if (FALSE) create_division("newdivision", "DV_1234567890AbCdE") if (FALSE) { admins <- list("UR_1234567890AbCdE", "UR_1234567890AbCdS") create_division("newdivision", "DV_1234567890AbCdE", admins) }