Create user
post
/PASService/rest/services/v1/users
Creates single or multiple users.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
string
Response
201 Response
This response code indicates creation of single or multiple users successfully.
Examples
This example describes how to create a single or multiple users.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -X POST \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \ -L "http://server:port/PASService/rest/services/v1/users" \ -d '{"Use this placeholder to plug-in the example request body given below"}'
Example Request Body
The following shows an example of the request body in JSON format:
{ "users": [ { "loginName":"User100", "password": "User100", "userStatus": "01", "localeCode": "01", "passwordEncryption": "SHA-512", "client": { "primaryCompany": "Prototype", "firstName": "User100", "lastName": "User100", "sex": "01", "email": "test@testmail.com" } , "securityGroup": [ { "securityGroupName": "Prototype Super", "roleEffectiveFrom": "2001-01-01T00:00:00Z" }, { "securityGroupName": "International Super", "roleEffectiveFrom": "2001-01-01T00:00:00Z" } ] }, { "loginName":"User200", "password": "User200", "userStatus": "01", "localeCode": "00", "passwordEncryption": "SHA-512", "client": { "primaryCompany": "Prototype", "firstName": "User200", "lastName": "User200", "sex": "01", "email": "test@testmail.com" } , "securityGroup": [ { "securityGroupName": "Prototype Super", "roleEffectiveFrom": "2001-01-01T00:00:00Z" }, { "securityGroupName": "International Super", "roleEffectiveFrom": "2001-01-01T00:00:00Z" } ] } ] }
Example Response Body
The following shows an example of the response body in JSON format:
{ "users": [ "3E5F11F0-CFE9-4A7E-A9B0-2CAEDEF8BBD1", "6A620EA0-7883-4395-81E5-9030CEFC20AB" ] }