I used "SELECT * FROM epersongroup " to get the IDs, but I couldn't seem to find the corresponding group name in the database. To find the name I had to look it up as an admin on our DSpace page under Access Control->Groups. Is there a way to find the IDs and names of the groups in the database?
SELECT e.*, m.text_value AS name FROM epersongroup e LEFT JOIN metadatavalue m ON ( m.resource_id = e.eperson_group_id AND m.resource_type_id = 6 )
That worked like a charm, helix84!
Is it possible to make groups with the CLI, similar to the «user» command for creating users, or in any other way script this behavior?
--
Vegard
From: ivan....@gmail.com [mailto:ivan....@gmail.com]
On Behalf Of helix84
Sent: Thursday, May 21, 2015 12:57 PM
To: Vegard Korvald
Cc: dspac...@lists.sourceforge.net
Subject: Re: [Dspace-tech] eperson and groups
On Thu, May 21, 2015 at 12:22 PM, Vegard Korvald <vegard....@usit.uio.no> wrote:
Is it possible to make groups with the CLI, similar to the «user» command for creating users, or in any other way script this behavior?
INSERT INTO epersongroup (eperson_group_id) VALUES (nextval('epersongroup_seq')); INSERT INTO metadatavalue (metadata_field_id, resource_type_id, resource_id, text_value) VALUES ( (SELECT metadata_field_id FROM metadatafieldregistry WHERE metadata_schema_id = 1 AND element = 'title' AND qualifier IS NULL ), 6, currval('epersongroup_seq'), 'NEW_GROUP_NAME' );
plugin.sequence.org.dspace.authenticate.AuthenticationMethod = \
org.dspace.authenticate.PasswordAuthentication
login.specialgroup = Registered
digestAlgorithm = SHA-512
2016-11-04 13:10:28,733 WARN org.dspace.authenticate.PasswordAuthentication @ xxx@xxx.xxx::password_specialgroup:Group defined in modules/authentication-password.cfg login.specialgroup does not exist