On Fri, May 22, 2015 at 9:07 AM, Vegard Korvald <vegard.korv...@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?
>

Well again, not currently using CLI, but using SQL. This used to be just
one insert, now it's two. Add a new row to the epersongroup table and its
name to the metadatavalue table.

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');


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to