Endpoint | Method |
---|---|
| POST |
Request-object:
{ "externalId": "<unique-identifier-in-source-system>", "userName": "<unique-email>", "active": <true|false>, "name": { "familyName": "<lastname>", "givenName": "<firstname>" }, "roles": [ { "value": "<talentech-group-identifier>" }, { "value": "<talentech-group-identifier>" } ] }
Property | Type | Required | |
---|---|---|---|
| string | Yes | Id of entity in remote system. |
| string | Yes | Username for user. Must be unique pr integration |
| boolean | No | Activationstatus for account. |
| string | No | Lastname |
| string | No | Firstname |
| array | No | Should contain atleast 1 role in order to propegate provisioning of the user to applications |
Sample-Request:
curl --location --request POST 'https://[API-URL]/scim/Users' \ --header 'Authorization: Bearer [AUTH-TOKEN]' \ --header 'Content-Type: application/json' \ --data-raw '{ "externalId": "16861ac5-deaa-4d66-a4cc-bc788965cc37", "userName": "username@domain.com", "active": true, "name": { "familyName": "Doe", "givenName": "John" }, "roles": [ { "value": "TalentechGroupTest1" }, { "value": "TalentechGroupTest2" } ] }'
Responses:
User registered | |
---|---|
Statuscode | 201 |
Response-body: The generated User Sample-response: { "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {}, "active": true, "meta": { "resourceType": "User" }, "name": { "familyName": "Doe", "givenName": "John" }, "roles": [ { "value": "TalentechGroupTest1", "type": null, "primary": false }, { "value": "TalentechGroupTest2", "type": null, "primary": false } ], "userName": "username@domain.com", "externalId": "26861ac5-deaa-4d66-a4cc-bc788965cc37", "id": "a3792aca-8f99-4d4b-a1f2-2b31e871b634", "schemas": [] } |
Conflict | |
---|---|
Statuscode | 409 |
Response-body: Error-details Sample-response: { "type": "https://tools.ietf.org/html/rfc7231#section-6.5.8", "title": "Conflict", "status": 409, "traceId": "00-2b173cd7732a264a9e6c0923774c695a-a3015397652caa47-00" } |