SCIM 2.0 Bulk API
The WSO2 Identity Platform - SCIM 2.0 Bulk API (version v1).
Download the OpenAPI definition (YAML)
Bulk Endpoint
This endpoint is used to create/update/delete SCIM resources (users and/or groups) in bulk.
Create/Update/Replace/Delete SCIM Resources (Users/ Groups) in Bulk
POST /Bulk
This API is used to create/update/replace/delete SCIM resources in bulk. You need to specify different operations in the request payload corresponding to the type of bulk update: </br></br>
- POST operation: Adds new resources. </br>
- PUT operation: Replaces an existing resource. </br>
- PATCH operation: Updates attributes of an existing resource. </br>
- DELETE operation: Removes an existing resource. </br>
- Scopes required:
internal_bulk_resource_createor an operation-wise scope - Flow type: Client Credentials OAuth Flow
Request body: application/scim+json
Schema: one of: BulkUserCreateObject, BulkUserUpdateObject, BulkUserReplaceObject, BulkUserDeleteObject, BulkGroupCreateObject, BulkGroupUpdateObject, BulkGroupReplaceObject, BulkGroupDeleteObject
Responses
| Code | Description | Schema |
|---|---|---|
201 | Valid user is created | BulkUserResponseObject |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
409 | Users already exists |
Schemas
BulkUserCreateObject
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
failOnErrors | integer | The number of errors that will be accepted by WSO2 Identity Platform before returning the response. | |
schemas | array of string | Yes | This is the schema that is required for sending bulk requests |
Operations | array of BulkUserOb | Yes | Array of operations. To add multiple new users, add an array of POST operations. You can include any number of operations in one bulk request. |
BulkUserUpdateObject
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
failOnErrors | integer | The number of errors that will be accepted by WSO2 Identity Platform before returning the response. | |
schemas | array of string | Yes | This is the schema that is required for sending bulk requests |
Operations | array of BulkUserUpdateOb | Yes | Array of operations. To update multiple users, add an array of PATCH operations. You can include any number of operations in one bulk request. |
BulkUserReplaceObject
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
failOnErrors | integer | The number of errors that will be accepted by WSO2 Identity Platform before returning the response. | |
schemas | array of string | Yes | This is the schema that is required for sending bulk requests |
Operations | array of BulkUserReplaceOb | Yes | Array of operations. To replace multiple users, add an array of PUT operations. You can include any number of operations in one bulk request. |
BulkUserDeleteObject
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
failOnErrors | integer | The number of errors that will be accepted by WSO2 Identity Platform before returning the response. | |
schemas | array of string | Yes | This is the schema that is required for sending bulk requests |
Operations | array of BulkUserDeleteOb | Yes | Array of operations. To delete multiple users, add an array of DELETE operations. You can include any number of operations in one bulk request. |
BulkGroupCreateObject
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
failOnErrors | integer | The number of errors that will be accepted by WSO2 Identity Platform before returning the response. | |
schemas | array of string | Yes | This is the schema that is required for sending bulk requests |
Operations | array of BulkGroupCreateOb | Yes | Array of operations. To add multiple new user groups, add an array of POST operations. You can include any number of operations in one bulk request. |
BulkGroupUpdateObject
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
failOnErrors | integer | The number of errors that will be accepted by WSO2 Identity Platform before returning the response. | |
schemas | array of string | Yes | This is the schema that is required for sending bulk requests |
Operations | array of BulkGroupUpdateOb | Yes | Array of operations. To update multiple user groups, add an array of PATCH operations. You can include any number of operations in one bulk request. |
BulkGroupReplaceObject
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
failOnErrors | integer | The number of errors that will be accepted by WSO2 Identity Platform before returning the response. | |
schemas | array of string | Yes | This is the schema that is required for sending bulk requests |
Operations | array of BulkGroupReplaceOb | Yes | Array of operations. To replace multiple user groups, add an array of PUT operations. You can include any number of operations in one bulk request. |
BulkGroupDeleteObject
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
failOnErrors | integer | The number of errors that will be accepted by WSO2 Identity Platform before returning the response. | |
schemas | array of string | Yes | This is the schema that is required for sending bulk requests |
Operations | array of BulkGroupDeleteOb | Yes | Array of operations. To delete multiple user groups, add an array of PUT operations. You can include any number of operations in one bulk request. |
BulkUserOb
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
method | string | Yes | The method that should be used in the operation |
path | string | Yes | Add this path to specify that a new user is being added. |
bulkId | string | Yes | A unique identifier for the bulk operation. The bulkid is required for POST operations. |
data | object | Yes | Specify the details of the new user that should be added. |
data.schemas | array of string | Yes | Specify the list of SCIM2 user schemas to which the new user should be linked. |
data.userName | string | The email address that should be set as the username. | |
data.password | string | Yes | The password that is set for the user. |
BulkUserUpdateOb
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
method | string | Yes | The method that should be used in the operation |
path | string | Yes | Add this path to specify the new user that is being updated. (Optional if op is add or replace) |
bulkId | integer | A unique identifier for the bulk operation. The bulkid is required for POST operations. | |
data | object | Yes | Specify the details of the new user that should be updated. |
data.op | string | Yes | The operation that should be applied to the existing user data. |
data.path | string | Yes | The path to the resource (user attribute) that should be updated. (Optional if op is add or replace) |
data.value | string | Yes | The value of the parameter specified by the path. (Optional if op is add or replace) |
BulkUserReplaceOb
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
method | string | Yes | The method that should be used in the operation |
path | string | Yes | Add this path to specify the existing user that should be replaced by the new user information that is added. |
bulkId | integer | A unique identifier for the bulk operation. The bulkid is required for POST operations. | |
data | object | Yes | Specify the new user details that should be used to replace the existing user specified in the path. |
data.schemas | array of string | Yes | Specify the list of SCIM2 user schemas to which the new user should be linked. |
data.userName | string | Yes | The name of the attribute that will be replaced. |
data.name | object | Yes | The name of the attribute that will be replaced. |
BulkUserDeleteOb
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
method | string | Yes | The method that should be used in the operation |
path | string | Yes | Add this path to specify the existing user that should be deleted. |
BulkGroupCreateOb
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
method | string | Yes | The method that should be used in the operation |
path | string | Yes | Add this path to specify that a new user group that should be added. |
bulkId | integer | A unique identifier for the bulk operation. The bulkid is required for POST operations. | |
data | object | Yes | Specify the details of the new user group that should be added. |
data.displayName | string | Yes | The display name of the user group. |
data.members | array of object | An array of member users. |
BulkGroupUpdateOb
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
method | string | Yes | The method that should be used in the operation |
path | string | Yes | Add this path to specify the user group that should be updated. |
bulkId | integer | A unique identifier for the bulk operation. The bulkid is required for POST operations. | |
data | object | Yes | Specify the details that should be updated for the user group specified in the path. |
data.op | string | Yes | The operation that should be applied to the existing user group. |
data.path | string | Yes | Specify “members” as the path.(Optional if op is add or replace) |
data.value | array of object | Yes | An array of users that belong to the group.(Optional if op is remove) |
BulkGroupReplaceOb
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
method | string | Yes | The method that should be used in the operation |
path | string | Yes | Add this path to specify the existing user group that should be replaced by the new information that is added. |
bulkId | integer | A unique identifier for the bulk operation. The bulkid is required for POST operations. | |
data | object | Yes | Specify the new group details that should be used to replace the existing user group specified in the path. |
data.displayName | string | Yes | The display name of the user group. |
data.members | array of object | Yes | Array of member users. |
BulkGroupDeleteOb
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
method | string | Yes | The method that should be used in the operation |
path | string | Yes | Add this path to specify the existing user group that should be deleted. |
BulkUserResponseObject
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | ||
Operations | OperationObBulk |
OperationObBulk
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
bulkId | string | ||
method | string | ||
location | string | ||
status | object | ||
status.code | string |
ErrorUnauthorized
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | string | ||
detail | string | ||
status | string | Yes |
ErrorForbidden
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | string | ||
detail | string | ||
status | string | Yes |
Was this page helpful?