SCIM API for User ReplacementSCIM API for User Replacement
Use the SCIM API to replace a user.
Authentication Authentication
Authorization: Bearer <Client Secret>
Use the copied Client Secret key as the Authorization key value.
Request RequirementsRequest Requirements
Method | Request URL | Response Content Type | Response Body | Response Codes |
---|---|---|---|---|
PUT |
<Base URI>/Users/id |
application/scim+json |
User details | 200, 400, 404, 409, 500 |
Example Request DataExample Request Data
PUT <Base URI>/"<id>"
Authorization: Bearer 29da0602f6db1ed033aa91d644ce4d70bdf3ab58
Content-Type: application/scim+json
Example Request BodyExample Request Body
The following examples display a user replacement request.
Full User Request Full User Request
{ "userName": "User One", "userType": "Senior Employee", "active": true, "addresses": [{ "primary": true, "type": "work", "streetAddress": "Address 1", "locality": "Address 2", "region": "Address 3", "postalCode": "000000", "country": "country name" } ], "displayName": "User One", "emails": [{ "type": "work", "value": "user.one@example.com", "primary": true } ], "locale": "EN_US", "name": { "givenName": "User", "familyName": "family_cloud", "formatted": "User One" }, "nickName": "User", "phoneNumbers": [{ "type": "work", "value": "+31 65 7777777", "primary": true }, { "type": "mobile", "value": "+31 65 8888888" } ], "preferredLanguage": "English", "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User" ], "title": "W965EL5C4URX" }
Partial User Request Partial User Request
{ "userName": "user_one123", "displayName": "User One", "emails": [{ "type": "work", "value": "user.one@example.com", "primary": true } ], "name": { "givenName": "User", "familyName": "family_cloud", "formatted": "User One" }, "phoneNumbers": [{ "type": "work", "value": "+31 65 7777777", "primary": true } ], "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User" ] }
Request Body ParametersRequest Body Parameters
See the SCIM Attributes section for the request parameters.
ResponseResponse
The API returns the user details.
Example ResponseExample Response
Full User Request Full User Request
{ "userName": "User One", "userType": "Senior Employee", "active": true, "addresses": [{ "primary": true, "type": "work", "streetAddress": "Address 1", "locality": "Address 2", "region": "Address 3", "postalCode": "000000", "country": "Country 1" } ], "displayName": "User One", "emails": [{ "type": "work", "value": "user.one@example.com", "primary": true } ], "locale": "EN_US", "name": { "givenName": "User", "familyName": "family_cloud", "formatted": "User One" }, "nickName": "user", "phoneNumbers": [{ "type": "work", "value": "+31 65 7777777", "primary": true }, { "type": "mobile", "value": "+31 65 8888888" } ], "preferredLanguage": "English", "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User" ] }
Partial User Request Partial User Request
{ "userName": "user_one123", "displayName": "User One", "emails": [{ "type": "work", "value": "user.one@example.com", "primary": true } ], "name": { "givenName": "User", "familyName": "family_cloud", "formatted": "User One" }, "phoneNumbers": [{ "type": "work", "value": "+31 65 7777777", "primary": true } ], "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User" ] }
Response Property DescriptionsResponse Property Descriptions
See SCIM Attributes.
Response CodesResponse Codes
The following table shows response codes for this API.
Code | Description |
---|---|
200 | OK |
400 |
Bad Data
{ Value for attribute schemas must contain schema URI urn:ietf:params:scim:schemas:core:2.0:User because it is the core schema for this resource type, Schema URI urn:ietf:params:scim:schemas:core:2.0:Userss is not a valid value for attribute schemas[0] because it is undefined as a core or schema extension for this resource type. }
{ Schema URI urn:ietf:params:scim:schemas:extension:enterpriser:2.0:User is not a valid value for attribute schemas[1] because it is undefined as a core or schema extension for this resource type }
{ Value for attribute schemas must contain schema URI urn:ietf:params:scim:schemas:core:2.0:User because it is the core schema for this resource type, Attribute schemas is required and must have a value. }
{ Value test is not valid for attribute emails[0].type because it is not one of the canonical types: other, work, home. } User update failed. { Value help is not valid for attribute phoneNumbers[0].type because it is not one of the canonical types: other, pager, work, mobile, fax, home. }
{ Value test is not valid for attribute emails[0].type because it is not one of the canonical types: other, work, home, Attribute userName is required and must have a value. }
{ Extended attributes namespace urn:ietf:params:scim:schemas:extension:enterprise:2.0:User must be included in the schemas attribute. } |
404 |
Not Found Error message example:
|
409 |
Conflict Error message examples:
|
500 |
Internal Server Error Error message example:
|