Locking users via the REST API
Added by Jens Theisen about 11 years ago
I can't find anything about it in the documentation. Is is possible?
Replies (4)
RE: Locking users via the REST API - Added by Mischa The Evil about 11 years ago
Not that I know of... The implemented REST API is documented very well; if a feature isn't in there, it - most likely - isn't implemented either.
RE: Locking users via the REST API - Added by Marco Descher almost 11 years ago
Yes, it is possible, you need to set the user status to 1 for being active, and 3 for being locked.
See http://www.redmine.org/projects/redmine/repository/entry/trunk/app/models/principal.rb#L22-25 and https://github.com/sschoorens/Net--Redmine--API--REST/blob/master/REST.pm
RE: Locking users via the REST API - Added by Jens Theisen almost 11 years ago
Thanks Marco, that's awesome.
RE: Locking users via the REST API - Added by Bruno Medeiros over 10 years ago
I took a look in the links above, but could realize how should I lock an user. Could someone explain it?