Creating Groups of Users: The Default Setup
Samvera ships with a YAML based group management system. Typically this is only used when learning Samvera.
To change the groups in the default YAML implementation, you want to edit
config/role_map.yml. That file should look something like this:
development: archivist: - firstname.lastname@example.org test: archivist: - email@example.com - firstname.lastname@example.org - email@example.com admin_policy_object_editor: - firstname.lastname@example.org donor: - email@example.com - firstname.lastname@example.org researcher: - email@example.com - firstname.lastname@example.org patron: - email@example.com - firstname.lastname@example.org production: # Add roles for users here.
If we want to add ourselves as to the
admin group we could make this change:
development: admin: - email@example.com
We can change the groups implementation (default is
RoleMapper) by setting
User.groups_service = MyCustomService
Here is the original implementation of the RoleMapper class.