As of today, we are running a single-institution installation of Dataverse. Employees and students at our university log in with their institutional credentials. Upon first log-in, a Dataverse account is created. Our main/root dataverse has the following access configuration: "Anyone with a Dataverse account can add datasets".
We are now testing a multi-institution installation of Dataverse, basically in the same vein as DataverseNL. In this new installation, the access configuration described above is somewhat unsatisfactory. We would like to change it to: "Anyone adding to this dataverse needs to be given access". However, we also would like to add new users automatically to selected user groups based on the affiliation, e.g. users with email addresses ending in @institutionX.no should be added to the user group "Institution X Dataset Creator".
Does anyone have any idea on how to accomplish such a solution? Maybe some of you already have implemented a script doing this? There are some previous threads on this/similar matters, i.a. one from DataverseNL, dating back to 2014 (see here
), and a more recent one (see here
). If I understood some of the replies to the last thread right, it is not recommended to add a script to for adding users to user groups to the core code, as this would make it more difficult to upgrade to new versions of Dataverse. Maybe there is another solution? An alternative, acceptable solution would be that the creation of a new account triggers an email to our curators, who then can add the new user to the appropriate user group.