Skip to main content
POST/api/security/users

Parameter

NameParameter typeTypeFormatDescriptionRequired
userbodyobjectuserThe user to createtrue

Responses

HTTP status codeReasonModel
201CreatedUser
401UnauthorizedError
403ForbiddenError
404User not foundError
409Resource already existsError
422Validation errorError
500Internal server errorError

Examples

Request to create a user

JSON
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
POST: /api/security/users { "username": "tdurden", "email": "t.turden@fightclub.com", "firstName": "Tyler", "lastName": "Durden", "timezone": "America/New_York", "expiry": "2050-12-31T23:59:59.999Z", "language": "en-US", "custom": { "department": "Soap sales" }, "credentials": { "password": "pr0j3ctM4yh3m" } }

Request to create a user with an initial status of suspended

JSON
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
POST: /api/security/users?suspended=true { "username": "tdurden", "email": "t.turden@fightclub.com", "firstName": "Tyler", "lastName": "Durden", "timezone": "America/New_York", "expiry": "2050-12-31T23:59:59.999Z", "language": "en-US", "custom": { "department": "Soap sales" }, "credentials": { "password": "pr0j3ctM4yh3m" } }

Request to create a user with an initial status of password reset required

JSON
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
POST: /api/security/users?forcePasswordReset=true { "username": "tdurden", "email": "t.turden@fightclub.com", "firstName": "Tyler", "lastName": "Durden", "timezone": "America/New_York", "expiry": "2050-12-31T23:59:59.999Z", "language": "en-US", "custom": { "department": "Soap sales" }, "credentials": { "password": "pr0j3ctM4yh3m" } }

Remarks

Still need help?

New support request