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: - email@example.com test: archivist: - firstname.lastname@example.org - email@example.com - firstname.lastname@example.org admin_policy_object_editor: - email@example.com donor: - firstname.lastname@example.org - email@example.com researcher: - firstname.lastname@example.org - email@example.com patron: - firstname.lastname@example.org - email@example.com production: # Add roles for users here.
If we want to add ourselves as to the
admin group we could make this change:
development: admin: - firstname.lastname@example.org
We can change the groups implementation (default is
RoleMapper) by setting
User.groups_service = MyCustomService
Here is the original implementation of the RoleMapper class.