On 6-oct-16, at 13:44, John Peter <[email protected]> wrote: > It works!! > Is this right ? I though it should have been done with just username. > { > "operation": "ADD_REPLACE", > "value": "", > "onSyncope": true, > "key": "9248266f-bc58-48e0-8826-6fbc5808e03d", > "type": "SUSPEND", > "token": "", > "resources": [] > }
Hi John, it is definitely correct: I will add some notes in the reference guide (both as HTTP / JSON and via SyncopeClient) as it looks like a common use case. It is kind of undocumented trick, but you could pass along the actual username as value for the "key" field, and it should work anyway. Regards. > On Thu, Oct 6, 2016 at 3:34 PM, John Peter < [email protected] > wrote: >> Hi, >> I found rest api for suspending a user in [1] but I think its not valid for >> Syncope 2.0.0. >> In [2], Can I use /users/{key}/status for suspending a user ? >> [1] https://cwiki.apache.org/confluence/display/SYNCOPE/REST+API+upgrade >> [2] http://syncope.apache.org/rest/2.0/index.html >> Thanks. -- Francesco Chicchiriccò Tirasa - Open Source Excellence http://www.tirasa.net/ Member at The Apache Software Foundation Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail http://home.apache.org/~ilgrosso/
