Create/Update users
/cloudapi/restapi/user
Request
- application/json
object
-
admin:
boolean
-
changePwdAtNextLogin:
boolean
-
createdBy:
string
-
createdDate:
object CloudTZDateTime
-
deprovisionedDate:
string(date-time)
-
deprovisioningDate:
string(date-time)
-
disabled(required):
boolean
-
emailAddress(required):
string
-
employeeNumber:
string
-
endDate:
string(date-time)
-
firstName(required):
string
-
id:
string
-
lastName(required):
string
-
locked:
boolean
-
loginAttemptsCtr:
string
-
loginId(required):
string
-
manager:
string
-
middleName:
string
-
organization(required):
object Organization
-
password:
array password
-
processed:
boolean
-
provisionedDate:
string(date-time)
-
provisioningDate:
string(date-time)
-
pwdCantChange:
boolean
-
pwdExpired:
boolean
-
pwdExpireDate:
string(date-time)
-
pwdWarnDate:
string(date-time)
-
pwdWarned:
boolean
-
roles:
array roles
-
startDate:
string(date-time)
-
status:
string
-
statusInfo:
string
-
statusInfoOK:
boolean
-
updatedDate:
object CloudTZDateTime
-
userType:
string
object
-
associations:
array associations
Unique Items Required:
true
-
bidderCompany:
boolean
-
createdBy:
string
-
createdDate:
string(date-time)
-
displayName(required):
string
-
id(required):
string
-
inheritedPolicy:
boolean
-
isDeletable:
boolean
-
name(required):
string
-
parentId:
string
-
parentName:
string
-
processed:
boolean
-
pwdPolicy:
object PwdPolicy
-
status:
string
-
statusInfo:
string
-
type:
string
-
updatedBy:
string
-
updatedDate:
string(date-time)
Response
- application/json
200 Response
file
202 Response
400 Response
500 Response
Examples
Method
POST
Response Content Type
application/json
Operation
/cloudapi/restapi/user
cURL Example
REQUEST URL: http://<hostname>:<port>/cloudapi/restapi/user
curl -X POST "http://<hostname>:<port>/cloudapi/restapi/user" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"added\":[{ \"loginId\": \"JSMITH\", \"organization\": { \"name\": \"sfo\" }, \"userType\": \"Employee\", \"emailAddress\": \"jsmith@company.com\", \"firstName\": \"Jim\", \"lastName\": \"Smith\"}]}"
Request Body Example
{
"added": [
{
"organization": {
"name": "sfo",
"type": "Company"
},
"roles": [
{
"name": "PrimaveraUnifierProduction"
}
],
"loginId": "JSMITH",
"firstName": "JIM",
"lastName": "SMITH",
"emailAddress": "jim.smith@pgbu.com",
"userType": "Employee"
}
]
}
Response Body Example
51571
Modify a User example
Method
POST
Response Content Type
application/json
Operation
/cloudapi/restapi/user
cURL Example
REQUEST URL: http://<hostname>:<port>/cloudapi/restapi/user
curl -X POST http://<hostname>:<port>/cloudapi/restapi/user -H 'accept: application/json' -H 'content-type: application/json' -d '{"modified": [{"organization": {"name": "sfo","type": "Company"},"roles": [{"name": "PrimaveraUnifierProduction"}],"loginId": "JSMITH","firstName": "JIM","lastName": "SMITH","emailAddress": "jim.smith@company.com","userType": "Employee","id":"3366"} ]}'
Request Body Example
{
"modified": [
{
"organization": {
"name": "sfo",
"type": "Company"
},
"roles": [
{
"name": "PrimaveraUnifierProduction"
}
],
"loginId": "JSMITH",
"firstName": "JIM",
"lastName": "SMITH",
"emailAddress": "jim.smith@pgbu.com",
"userType": "Employee",
"id":"3366"
}
]
}
Response Body Example
69532