[rt-users] Create an user using Rest API

Guillaume Hilt ghilt at shadowprojects.org
Tue Mar 20 09:20:58 EDT 2012


Ok, I just noticed that, despite the error, the users were created in 
the database.
Strange, but as long as it works.

   Guillaume Hilt


Le 20/03/2012 14:16, Guillaume Hilt a écrit :
> No, I got no users right now, it's a fresh install.
> I tried again, adding Password and Privileged fields, same error.
>
>   Guillaume Hilt
>
>
> Le 20/03/2012 14:13, sunnavy a écrit :
>> Is it possible that user "test" already exists?
>>
>> sunnavy
>>
>> On 12-03-20 13:38, Guillaume Hilt wrote:
>>>      Hello,
>>>
>>> I'd like to create an user using RT API (with RT 3.8.7 on Ubuntu 
>>> 10.04).
>>>
>>> I tried in PHP with a request to /user/new using this post data :
>>> id: user/new
>>> Name: test
>>> EmailAddress: test at test.com
>>> RealName: test
>>> Lang: fr-fr
>>> Organization: test
>>>
>>> But all I got is a bad quest error :
>>>
>>> RT/3.8.7 400 Bad Request
>>>
>>> # Could not create user.
>>>
>>> Is it possible ?
>>>
>>> Regards,
>>>
>>> -- 
>>>    Guillaume Hilt
>>>
>



More information about the rt-users mailing list