[GeoNode-users] GeoNode API - create user with group and permissions

Toni Schönbuchner toni.schoenbuchner at csgis.de
Thu Mar 5 12:18:08 PST 2020


Hi Silvia,

I do not think the api allowed user creation. From what I see there
is just a GET method:

https://github.com/GeoNode/geonode/blob/master/geonode/api/api.py#L441-L558 <https://github.com/GeoNode/geonode/blob/master/geonode/api/api.py#L441-L558>

Tastypie is used as api, means you could extend it.

https://stackoverflow.com/questions/8889153/how-to-create-or-register-user-using-django-tastypie-api-programmatically/8915515 <https://stackoverflow.com/questions/8889153/how-to-create-or-register-user-using-django-tastypie-api-programmatically/8915515>

But this is all untested, let's see what others think.

Cheers,

Toni


> Am 05.03.2020 um 21:00 schrieb geonode-users-request at lists.osgeo.org:
> 
> Send geonode-users mailing list submissions to
> 	geonode-users at lists.osgeo.org <mailto:geonode-users at lists.osgeo.org>
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://lists.osgeo.org/mailman/listinfo/geonode-users <https://lists.osgeo.org/mailman/listinfo/geonode-users>
> or, via email, send a message with subject or body 'help' to
> 	geonode-users-request at lists.osgeo.org <mailto:geonode-users-request at lists.osgeo.org>
> 
> You can reach the person managing the list at
> 	geonode-users-owner at lists.osgeo.org <mailto:geonode-users-owner at lists.osgeo.org>
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of geonode-users digest..."
> Today's Topics:
> 
>   1. GeoNode API - create user with group and permissions
>      (Silvia Salsone)
> 
> Von: Silvia Salsone <salsone at planetek.it <mailto:salsone at planetek.it>>
> Betreff: [GeoNode-users] GeoNode API - create user with group and permissions
> Datum: 5. März 2020 um 15:44:39 MEZ
> An: "geonode-users at lists.osgeo.org <mailto:geonode-users at lists.osgeo.org>" <geonode-users at lists.osgeo.org <mailto:geonode-users at lists.osgeo.org>>
> 
> 
> Hi all,
>  
>  
> Can you tell if APIs to create users and related properties exist in GeoNode? I’d like to create a user on GeoNode every time a user signs up on a CKAN portal.
>  
> I’d be very grateful if you could give me a suggestion on how to proceed.
> Thank you very much.
> Kind regards,
> Silvia
>  
> Silvia Salsone
> Technical Manager
> Government & Security SBU
>  
>  Planetek Italia S.r.l.
> Via Massaua, 12 - I-70132 Bari, Italy
> Tel. +39 0809644200
>  
> 
> 
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org <mailto:geonode-users at lists.osgeo.org>
> https://lists.osgeo.org/mailman/listinfo/geonode-users <https://lists.osgeo.org/mailman/listinfo/geonode-users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20200305/be587b80/attachment-0001.html>


More information about the geonode-users mailing list