Creates rake for setup users
-
Adds a rake task to create users
-
The rake task can create users using any combination of
- database auth
- Shibboleth auth
- Orcid auth
-
Assign users to the following roles
- admin
- publication_manager
- crc_1280_manager
- crc_1280_member
- crc_1280_group_manager
- crc_1280_group_member
-
The list of possible attributes are
- password
- name
- saml_id
- orcid
- role
- group_id
Not all attributes are required. See the template file setup.json.template for the different combinations.
Roles
crc_1280_group_manager
andcrc_1280_group_member
needs the attributegroup_id
for the role to be assigned
-
-
setup_hyrax.rake now calls setup_users.rake to create users.
-
Seed files
- The seed file setup.json has been deleted and in place is a template seed file setup.json.template
- All files in the directory hyrax/seed will be ignored by git (except hyrax/seed/setup.json.template)
- NOTE: Make a copy of the file setup.json before pulling this change, if you would like to retain that file.
Edited by Anusha Ranganathan