Extension Dataset Permissioning


Extension Basics

Title
Dataset Permissioning
Name
ckanext-datasetpermissioning
Type
Public extension
Description
CKAN extension allowing private datasets to be viewed by an extra set of users selected when creating the dataset, using IPermissionLabels.
CKAN versions
Download-Url (zip)
Last commit
7 years ago (2018-10-03 18:01:53)
Url to repo
Category
Authentication & Security


Background Infos

Description (long)
Show details

ckanext-datasetpermissioning

This CKAN extension allows private datasets to be viewed by an extra set of users that may be selected when creating the dataset.

It provides a scheming choices helper that returns a list of non-sysadmin users (sysadmin users can see all private datasets anyway) to give read access.

Requirements

  • Requires ckanext-scheming
  • Requires the IPermissionLabels feature in recent versions of CKAN

Installation

  1. Clone the repository:
cd /usr/lib/ckan/default/src
git clone https://github.com/OpenGov-OpenData/ckanext-datasetpermissioning.git
cd ckanext-datasetpermissioning
  1. Install the extension:
python setup.py develop
  1. Add datasetpermissioning to your CKAN config file’s ckan.plugins setting.

  2. Add this field to your dataset schema:

# extra view-only permission on this dataset for users selected here
- field_name: view_users
  label: View Permissions
  preset: multiple_select
  choices_helper: nonsysadmin_user_choices
  display_snippet: null
  1. Restart CKAN.

Note: This repository was archived by the owner on Apr 26, 2019. It is now read-only.

Contributors

  • Ian Ward (wardi)
  • Jay Guo (jguo144)
Version
Version release date
(not set)
Contact name
OpenGov-OpenData
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints

ARCHIVED repository. Requires ckanext-scheming and IPermissionLabels feature.

Plugins to configure (ckan.ini)
datasetpermissioning
CKAN Settings (ckan.ini)
DB migration to be executed
(not set)
<< back to Extensions