Create user
post
/PASService/rest/services/users
Creates a single or multiple users
Request
Supported Media Types
- application/json
Root Schema : schema
Type:
stringResponse
Supported Media Types
- application/json
Default Response
successful operation
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" -u username:password "server:port/PASService/rest/services/users"
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": [
"7FDA5A8B-D3A4-45C3-B61E-DA855799A122",
"0794E404-90F9-456B-AC35-63AAB0E1E55E"
]
}"