Creates a new role in the database. Roles represent access levels and together with the assignment of roles to time series, versions of time series or datasets define who is allowed to access a particular series.

db_access_level_create(
  con,
  access_level_name,
  access_level_description = NULL,
  access_level_default = NULL,
  schema = "timeseries"
)

Arguments

con

RPostgres connection object.

access_level_name

character name of the access level to insert.

access_level_description

character description of the access level. Defaults to NA.

access_level_default

set if the new access level should be the default. Defaults to NA.

schema

character name of the database schema. Defaults to 'timeseries'

Value

returns a list containing the parsed JSON status feedback from the DB.