Hi Peter,
why not use BioBlend?

https://bioblend.readthedocs.io/en/latest/api_docs/galaxy/all.html#module-bioblend.galaxy.users

Cheers,
Nicola

---- Peter Cock ha scritto ----

>Thanks Hans-Rudolf,
>
>Yes - you are right. The wiki does link there but it wasn't obvious to me.
>Reading the UserAPIController link source code suggests as long as
>I am authenticated as a Galaxy Admin, I could use this to create new
>user accounts:
>
>https://docs.galaxyproject.org/en/master/_modules/galaxy/webapps/galaxy/api/users.html#UserAPIController.create
>
>Thank looks very promising...
>
>Peter
>
>On Mon, Aug 29, 2016 at 4:36 PM, Hans-Rudolf Hotz <h...@fmi.ch> wrote:
>> Hi Peter
>>
>> I guess it is here:
>>
>> https://docs.galaxyproject.org/en/master/api_doc.html
>>
>>
>> Regards,  Hans-Rudolf
>>
>> On 08/29/2016 05:27 PM, Peter Cock wrote:
>>>
>>> Hi Martin,
>>>
>>> I'd like to look into creating new users via the API (where we can
>>> control the email address and username format for integration with our
>>> cluster), and have the web-interface forbid users from self-registration.
>>>
>>> The read-the-docs site you mentioned in this old email (below) doesn't
>>> exist anymore, and the API wiki page doesn't seem to link to something
>>> similar:
>>>
>>> https://wiki.galaxyproject.org/Admin/API
>>>
>>> Where is the official API documentation now?
>>>
>>> Thanks,
>>>
>>> Peter
>>>
>>> On Mon, Dec 30, 2013 at 4:34 AM, Martin Čech <mar...@bx.psu.edu
>>> <mailto:mar...@bx.psu.edu>> wrote:
>>>
>>>     Hi,
>>>
>>>     you specify username, password and email in the body (payload) of
>>>     the POST as Key:Value pairs.
>>>
>>>     Code from the API method: (
>>>
>>> https://galaxy-central.readthedocs.org/en/latest/_modules/galaxy/webapps/galaxy/api/users.html#UserAPIController.create
>>>
>>> <https://galaxy-central.readthedocs.org/en/latest/_modules/galaxy/webapps/galaxy/api/users.html#UserAPIController.create>
>>>     )
>>>
>>>
>>> username=payload['username']email=payload['email']password=payload['password']
>>>
>>>     There are also other conditions that need to be fulfilled (e.g. user
>>>     creation has to be turned on in the configuration) - you will find
>>>     these when you look at the source code of the method (because the
>>>     documentation is not perfect yet, sorry).
>>>
>>>     M.
>>>
>>>
>>>
>>>
>>> ___________________________________________________________
>>> Please keep all replies on the list by using "reply all"
>>> in your mail client.  To manage your subscriptions to this
>>> and other Galaxy lists, please use the interface at:
>>>    https://lists.galaxyproject.org/
>>>
>>> To search Galaxy mailing lists use the unified search at:
>>>    http://galaxyproject.org/search/mailinglists/
>>>
>>
>___________________________________________________________
>Please keep all replies on the list by using "reply all"
>in your mail client.  To manage your subscriptions to this
>and other Galaxy lists, please use the interface at:
>  https://lists.galaxyproject.org/
>
>To search Galaxy mailing lists use the unified search at:
>  http://galaxyproject.org/search/mailinglists/
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  https://lists.galaxyproject.org/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/

Reply via email to