Re: [Dhis2-devs] Query regarding /api/users

2014-04-15 Thread Morten Olav Hansen
Great :) -- Morten On Tue, Apr 15, 2014 at 4:26 PM, Mahendra Kariya < mahendra.kar...@thoughtworks.com> wrote: > Its working! :-) > There was some issue with the DHIS build. It was picking up the old war > file all this time. > > Thanks a ton! > > > On Tue, Apr 15, 2014 at 2:24 PM, Morten Olav

Re: [Dhis2-devs] Query regarding /api/users

2014-04-15 Thread Morten Olav Hansen
What values are you trying to change? It's working fine here.. Tested with disabled etc On Apr 15, 2014 3:30 PM, "Mahendra Kariya" wrote: > Sorry Morten. This is not working. > > After line 585 in DefaultIdentifiableObjectImporter is executed > successfully, the values in the expression *((User)

Re: [Dhis2-devs] Query regarding /api/users

2014-04-15 Thread Morten Olav Hansen
This should now be fixed in rev 14867. -- Morten On Mon, Apr 14, 2014 at 8:02 PM, Mahendra Kariya < mahendra.kar...@thoughtworks.com> wrote: > Hi Morten, > > We are trying to disable the user using PUT on /api/users/{id}. But when > we are doing a HTTP GET on the user, we are not able to see th

Re: [Dhis2-devs] Query regarding /api/users

2014-04-14 Thread Morten Olav Hansen
Hi We don't provide any web-api service for directly disabling a user, but you can update the user with userCredentials.disabled = true, which will disallow the user to login. -- Morten On Mon, Apr 14, 2014 at 3:30 PM, Mahendra Kariya < mahendra.kar...@thoughtworks.com> wrote: > Thanks! We are

Re: [Dhis2-devs] Query regarding /api/users

2014-04-14 Thread Morten Olav Hansen
That code is located in AbstractCrudController -- Morten On Mon, Apr 14, 2014 at 3:05 PM, Mahendra Kariya < mahendra.kar...@thoughtworks.com> wrote: > Hi Morten, > > Thank you for the prompt reply. > I don't see any code (in trunk) in UserController.java that supports the > delete functionality

Re: [Dhis2-devs] Query regarding /api/users

2014-04-14 Thread Morten Olav Hansen
> > >1. Is there an any way to delete a user using the API? > > You should be able to delete a user by doing a DELETE request to /api/users/UID in 2.15, be aware that there might be some foreign keys etc getting in the way, so another solution might be to disable the user > >1. We want "a