Skip to content

Grant Access to the Variables Module

Access to the module is granted per role in rbac.yml, under the module key ddi_physicalinstance. This guide covers the usual cases; see Roles & Permissions for the general semantics of ALL, STAMP and omitted privileges.

rbac:
config:
Administrateur_RMESGNCS:
ddi_physicalinstance:
create: ALL
read: ALL
update: ALL
delete: ALL
publish: ALL

ALL still requires the user’s token to carry a stamp for write actions.

Grant access limited to the user’s own series

Section titled “Grant access limited to the user’s own series”
rbac:
config:
Gestionnaire_variables_RMESGNCS:
ddi_physicalinstance:
create: STAMP
read: STAMP
update: STAMP
delete: STAMP
publish: STAMP

Under STAMP, a user sees and edits only the data files whose parent group points at a series they created. Concretely:

  • GET /ddi/physical-instance, GET /ddi/physical-instance/search and GET /ddi/group return filtered lists
  • POST /ddi/physical-instance is checked against the group named in the request body

See Access Control for how that ownership is resolved.

Omit every privilege you do not want to grant — anything not listed is denied:

rbac:
config:
Lecteur_RMESGNCS:
ddi_physicalinstance:
read: ALL

The interface adapts on its own: the create button disappears when the CREATE strategy is NONE.

The frontend reads the current user’s privileges from the API; the quickest check is to log in and look at the module. To inspect the configuration itself, look for the role name in rbac.yml — a role with no ddi_physicalinstance block has no access to the module at all, and the Variables tile stays out of reach.

RoleStrategy on every privilege
Gestionnaire_variables_RMESGNCSSTAMP
Betatest_OeDDIp_RMESGNCSALL
Administrateur_RMESGNCSALL