The same issues applies to hammer organization add_user and hammer organization remove_user
[root@qetello03 ~]# hammer -v user info --id 2
Id: 2
Login: hidden-jwwiEr
Name:
Email: qVadfhEBUb@localhost
Last login:
Created at: 2014/02/04 20:27:34
Updated at: 2014/02/04 20:27:34
[root@qetello03 ~]# hammer -v organization add_user --id 1 --user-id 2
[root@qetello03 ~]# hammer -v organization add_user --name 'ACME_Corporation' --user-id 2
and
Started GET "/api/users/2" for 127.0.0.1 at 2014-02-07 10:52:16 -0500
Processing by Api::V2::UsersController#show as JSON
Parameters: {"apiv"=>"v2", "id"=>"2", "user"=>{}}
Authorized user admin(Admin User)
Rendered api/v2/users/show.json.rabl (7.7ms)
Completed 200 OK in 62ms (Views: 8.1ms | ActiveRecord: 14.9ms)
Started GET "/api/organizations/1" for 127.0.0.1 at 2014-02-07 10:52:27 -0500
Processing by Api::V2::OrganizationsController#show as JSON
Parameters: {"apiv"=>"v2", "id"=>"1", "organization"=>{}}
Authorized user admin(Admin User)
Rendered api/v2/taxonomies/show.json.rabl (13.5ms)
Completed 200 OK in 61ms (Views: 12.4ms | ActiveRecord: 12.9ms)
Started GET "/api/users/2" for 127.0.0.1 at 2014-02-07 10:52:27 -0500
Processing by Api::V2::UsersController#show as JSON
Parameters: {"apiv"=>"v2", "id"=>"2", "user"=>{}}
Authorized user admin(Admin User)
Rendered api/v2/users/show.json.rabl (145.7ms)
Completed 200 OK in 192ms (Views: 145.9ms | ActiveRecord: 10.9ms)
Started PUT "/api/organizations/1" for 127.0.0.1 at 2014-02-07 10:52:27 -0500
Processing by Api::V2::OrganizationsController#update as JSON
Parameters: {"user_ids"=>[2], "apiv"=>"v2", "id"=>"1", "organization"=>{}}
Authorized user admin(Admin User)
Expire fragment views/tabs_and_title_records-1 (0.5ms)
Completed 200 OK in 222ms (Views: 51.2ms | ActiveRecord: 0.0ms)
Started GET "/api/organizations?search=name+%3D+ACME_Corporation" for 127.0.0.1 at 2014-02-07 10:52:33 -0500
Processing by Api::V2::OrganizationsController#index as JSON
Parameters: {"search"=>"name = ACME_Corporation", "apiv"=>"v2", "organization"=>{}}
Authorized user admin(Admin User)
Rendered api/v2/taxonomies/index.json.rabl within api/v2/layouts/index_layout (3.1ms)
Completed 200 OK in 55ms (Views: 5.6ms | ActiveRecord: 15.3ms)
Started GET "/api/organizations/1" for 127.0.0.1 at 2014-02-07 10:52:33 -0500
Processing by Api::V2::OrganizationsController#show as JSON
Parameters: {"apiv"=>"v2", "id"=>"1", "organization"=>{}}
Authorized user admin(Admin User)
Rendered api/v2/taxonomies/show.json.rabl (12.2ms)
Completed 200 OK in 60ms (Views: 11.0ms | ActiveRecord: 14.1ms)
Started GET "/api/users/2" for 127.0.0.1 at 2014-02-07 10:52:34 -0500
Processing by Api::V2::UsersController#show as JSON
Parameters: {"apiv"=>"v2", "id"=>"2", "user"=>{}}
Authorized user admin(Admin User)
Rendered api/v2/users/show.json.rabl (7.6ms)
Completed 200 OK in 71ms (Views: 8.2ms | ActiveRecord: 27.3ms)
Started PUT "/api/organizations/1" for 127.0.0.1 at 2014-02-07 10:52:34 -0500
Processing by Api::V2::OrganizationsController#update as JSON
Parameters: {"user_ids"=>[2], "apiv"=>"v2", "id"=>"1", "organization"=>{}}
Authorized user admin(Admin User)
Expire fragment views/tabs_and_title_records-1 (0.1ms)
Completed 200 OK in 345ms (Views: 41.7ms | ActiveRecord: 0.0ms)