Creating Users - ACS - Reference Guides

ACS Integration Guide

Product
ACS
Platform
7.9
Category
Reference Guides
Language
English
Target Audience
public

To add a user into the CKS instance community, a CKS administrator must use the POST method on the user list resource.

WADL file

Resource

Method

user.wadl

/cks/instance/<service_id>-${Service_Status}/user

POST

The following example shows how to create a user. The id of this new user is 12 and its reference is /cks/instance/<service_id>-${Service_Status}/user/12.

The request line is:

POST /cks/instance/<service_id>-${Service_Status}/user?afs:login=login://user1:@Antidot

The message body is:

<value xsi:type="cks.ws.user" xmlns="antidot:cks:input" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<metadata xsi:type="dynamic">
<password xsi:type="string">blabla</password>
</metadata>
<lastName>Einstein</lastName>
<firstName>Albert</firstName>
<sex>MASCULIN</sex>
<title>Herr</title>
<email>albert.einstein@olympia.de</email>
<language >de</language>
<country>deutschland</country>
<login>aeinstein</login>
<annotations xsi:type="collection">
<annotation xsi:type="common.annotation.string">
<name>city</name>
<values>
<value>Ulm</value>
</values>
</annotation>
</annotations>
</value>

The reply body is:

<value xsi:type="ws.response" xmlns="antidot:cks:output"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<result xsi:type="cks.ws.user" reference="/cks/instance/<service_id>-${Service_Status}/user/12">
<id>12</id>
<hidden>false</hidden>
<tracker>
<creationDate xsi:type="date-time"
timestamp="1281354110105">
2010-08-09T13:41:50+02:00
</creationDate>
<creator xsi:type="cks.ws.user"
partial="true" reference=
"/cks/instance/<service_id>-${Service_Status}/user/2"/>
<modificationDate xsi:type="date-time"
timestamp="1281354110105">
2010-08-09T13:41:50+02:00
</modificationDate>
<modifier xsi:type="cks.ws.user"
partial="true"
reference="/cks/instance/<service_id>-${Service_Status}/user/2"></modifier>
</tracker>
<lastName>Einstein</lastName>
<firstName>Albert</firstName>
<sex>MASCULIN</sex>
<title>Herr</title>
<email>albert.einstein@olympia.de</email>
<language >de</language>
<country>deutschland</country>
<login>aeinstein</login>
<annotations type="collection">
<annotation type="common.annotation.string">
<name>city</name>
<values>
<value>Ulm</value>
</values>
</annotation>
</annotations>
</result>
</value>