Target release1.0.3
Source (e.g. Github)https://github.com/MandanaMoshref/ckanext-userautoaddgroup
Main featuresCKAN plugin to add new users to top(parent) groups automatically.
Prerequisite / Dependencies

Tested with CKAN v2.9

LicenseAGPL-3.0 License
Installed by
Document status

COMPLETED

Background and strategic fit

CKAN plugin to add new users to top(parent) groups automatically.

This plugin implements the user_create action to add users to an existing parent group with a given role (both specified in the configuration - See Config Settings below).

This code is inspired by the "ckanext-userautoadd": https://github.com/aptivate/ckanext-userautoadd

Installations and Requirements

To install ckanext-userautoadd:

  1. Activate your CKAN virtual environment, for example:

    . /usr/lib/ckan/default/bin/activate
  2. Install the ckanext-userautoadd Python package into your virtual environment:

    pip install ckanext-userautoaddgroup
    
    // or
    
    pip install -e git+https://github.com/ckan/ckanext-userautoaddgroup#egg=ckanext-userautoaddgroup
  3. Add userautoaddgroup to the ckan.plugins setting in your CKAN config file

  4. Restart CKAN. For example, if you've deployed CKAN with Apache on Ubuntu:

    sudo service apache2 reload

Configuration options

configuration.ini
# The organization to which new users are added
ckan.userautoaddgroup.group_name_1 = [name1]
ckan.userautoaddgroup.group_name_2 = [name2]
ckan.userautoaddgroup.group_name_3 = [name3]

# The role the new users will have
ckan.userautoaddgroup.group_role = [editor / admin]

# The name of the admin
ckan.userautoaddgroup.admin_username = [admin user name]

User interaction and design

Everything happens at the backend. No user interface design is required.

Questions and Answers

Below is a list of Q&A from user sides:

QuestionAnswers

Further steps