ckanext-customuserprivileges
ckanext-customuserprivileges is a CKAN extension for adding additional restrictions for dataset management. It adds an extra autocomplete field to the dataset to specify users who can administer it.
This works for both:
- Unowned datasets that by default can be managed by any authenticated user
- Datasets within organizations which requires the member to have sufficient permissions within the organization AND be a manager
Note: This module is developed on CKAN v2.4.0, compatibility with other versions is not ensured.
Installing
Clone this repository:
source /usr/lib/ckan/default/bin/activate
cd /usr/lib/ckan/default/src
git clone https://github.com/cphsolutionslab/ckanext-customuserprivileges.git
cd ckanext-customuserprivileges
python setup.py develop
Enable plugin in configuration:
ckan.plugins = datastore ... customuserprivileges
Usage
Extra field for specifying dataset administrators is visible when creating or editing the dataset. Users will be specified by their username.
By default when creating a dataset and not specifying any administrators, only the user who created it can manage it. For other users:
- Unowned dataset + dataset administrator = can edit
- Company dataset + admin or editor within company + dataset administrator = can edit
License
AGPL-3.0