Create a User
To create an operator, the client must send a POST request to: /aims/rs/scim/v2/Users.
The server performs the following actions:
-
Create the operator with the given username.
-
If the X509 certificate is given, verify the expiry date.
-
Associate the X509 certificate with the user.
-
Return the full representation of the User.
The possible HTTP status codes returned are:
-
201: Created
-
400: Bad Request
-
401: Unauthorized
-
403: Forbidden
-
409: Conflict (duplicate username)
Example request:
POST /aims/rs/scim/v2/Users HTTP/1.1
Host: cms.mycompany.com
Accept: application/scim+json
Content-Type: application/scim+json
Authorization: Bearer h480djs93hd8
Content-Length: ...
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
"userName": "operator1",
"active": true,
"roles": [{"display":"operator"}],
"x509Certificates": [{"value":"MIIDQzCCAqygAwIB...67890=="}],
}
Example response:
HTTP/1.1 201 Created
Content-Type: application/scim+json
Location: https://cms.mycompany.com/aims/rs/scim/v2/Users/f462d166 ffa8 11e9-b674-00505688265e
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
"id": "f462d166-ffa8-11e9-b674-00505688265e",
"userName": "operator1",
"active": true,
"roles": [{"display":"operator"}],
"x509Certificates": [{"value":"MIIDQzCCAqygAwIB...67890=="}],
"meta": {
"resourceType": "User",
"created": "2019-01-23T04:56:22Z",
"lastModified": "2019-05-13T04:42:34Z",
"location": "https://cms.mycompany.com/aims/rs/scim/v2/Users/f462d166-ffa8-11e9-b674-00505688265e"
}
}