[ckan-dev] Hide dataset in search

Sean Hammond sean.hammond at okfn.org
Mon Feb 4 11:39:26 UTC 2013


> I know it's more or less against the whole idea of CKAN, but is it possible
> to hide datasets from certain users? I have played around with the

Actually, that's not against the idea of CKAN at all. As part of the new
"organizations" feature in CKAN 2.0 we're implementing private datasets,
which can only be seen by users who are members of the organization that
owns the dataset (including when the datasets are shown in search
results, activity streams, etc.) I think the main use-case for this is
for publisher organizations that want to keep datasets private until
they've been approved by an organization admin, before making them
public.

Unfortunately you're right, the authorization system in CKAN 1 does not
hide datasets in search results from users who don't have permission to
read the dataset.

If waiting for CKAN 2.0 is not an option, you could try the
organizations extension that ships with CKAN 1.7/1.8. It's a very early
prototype of the new organizations feature in CKAN 2:

http://docs.ckan.org/en/ckan-1.8/publisher-profile.html

I can't remember whether it lets you make private datasets and hide them
from search results, but it may do.




More information about the ckan-dev mailing list