Extension Custom User Privileges


Extension Basics

Title
Custom User Privileges
Name
ckanext-customuserprivileges
Type
Public extension
Description
Adds per-dataset administrator restrictions allowing fine-grained user access control beyond standard organization roles.
CKAN versions
Download-Url (zip)
Last commit
10 years ago (2015-09-10 12:51:04)
Url to repo
Category
Authentication & Security


Background Infos

Description (long)
Show details

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

  1. 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
    
  2. 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

Version
0.1.0
Version release date
2014-01-29
Contact name
CPH Solutions Lab
Contakt email
(not set)
Contact Url


Installation Guide

Configuration hints

Developed for CKAN 2.4.0. Adds per-dataset user administrator field.

Plugins to configure (ckan.ini)
customuserprivileges
CKAN Settings (ckan.ini)
# No additional environment variables required
DB migration to be executed
(not set)
<< back to Extensions