AnsweredAssumed Answered

Create user via resful service [Solved]

Question asked by michaelc on Apr 21, 2011
Latest reply on Apr 25, 2011 by michaelc
I am having a minor issue with a service I have.
I create a user via a restful service as stated in the documents.

it works except I wanted to set the user disabled and set there skype value.
should work any idea what my be my issue or does this not work as I would expect ?

  service call
  URL POST http://localhost/alfresco/service/api/people
  content type : application/json
  data:
{
   
   "userName": "a44773x",
   "enabled": false,
   "firstName": "Michael",
   "lastName": "Ford",
   "jobtitle": "daskldas",
   "email": "my@email.com",
   "skype": "subscribe"

}

result:
{
   "url": "\/alfresco\/service\/api\/person\/a44773x",
   "userName": "a44773x",
   "enabled": true,
   "firstName": "Michael",
   "lastName": "Ford",
   "jobtitle": "daskldas",
   "organization": null,
   "location": null,
   "telephone": null,
   "mobile": null,
   "email": "my@email.com",
   "companyaddress1": null,
   "companyaddress2": null,
   "companyaddress3": null,
   "companypostcode": null,
   "companytelephone": null,
   "companyfax": null,
   "companyemail": null,
   "skype": null,
   "instantmsg": null,
   "googleusername": null,
   "quota": -1,
   "sizeCurrent": 0,
   "persondescription": null
}

Outcomes