[ckan-dev] how to add members in organization
Andrea Stella
andrea.stella at yacme.com
Mon Aug 1 13:27:49 UTC 2016
Hi all,
first of all thanks a lot for your answers.
@Dan Mihaila @Matthew Fullertone @Ian Ward: now I have rosolved it with a simple python script that invokes ckan api, but also I'll try the ckanapi action. These are the fastest ways.
@Martin Burchell: I'll consider your plugin for any future needs. Now a user could also be part of different organizations and not all created users must belong to the organization.
I've another question: how does the form to upload files in ckan work? May I use a csv file only for creating a dataset or may I upload it in the file system and afterwards process it for other purposes?
Thanks,
a.
Da: "Ian Ward" <ian at excess.org>
A: "ckan dev" <ckan-dev at lists.okfn.org>
Inviato: Venerdì, 29 luglio 2016 23:39:43
Oggetto: Re: [ckan-dev] how to add members in organization
If you know all the users that should be in an organization this can
be done using the API, e.g. with ckanapi
$ ckanapi action organization_patch -i <<<JSON
{ "id": "my-org-name",
"users": [
{"name": "person1", "capacity": "admin"},
{"name": "person2", "capacity": "member"},
....
]}
JSON
On Thu, Jul 28, 2016 at 11:45 AM, Andrea Stella <andrea.stella at yacme.com> wrote:
> Hi all,
> I should set up a lot of members of an organization. Does a process to do it
> quickly and all together without adding them one by one exist?
>
> Thnks a lot,
> a.
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160801/29550a1b/attachment-0002.html>
More information about the ckan-dev
mailing list