Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

SCIM 2.0 Bulk API

Download OpenAPI (YAML)Version v1

Base URL: https://api.asgardeo.io/t/<ORGANIZATION_NAME>/scim2

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_create or 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

CodeDescriptionSchema
201

Valid user is created

BulkUserResponseObject
401

Unauthorized

ErrorUnauthorized
403

Forbidden

ErrorForbidden
409

Users already exists

Schemas​

BulkUserCreateObject​

Type: object

3 properties
NameTypeRequiredDescription
failOnErrorsinteger

The number of errors that will be accepted by WSO2 Identity Platform before returning the response.

schemasarray of stringYes

This is the schema that is required for sending bulk requests

Operationsarray of BulkUserObYes

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
NameTypeRequiredDescription
failOnErrorsinteger

The number of errors that will be accepted by WSO2 Identity Platform before returning the response.

schemasarray of stringYes

This is the schema that is required for sending bulk requests

Operationsarray of BulkUserUpdateObYes

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
NameTypeRequiredDescription
failOnErrorsinteger

The number of errors that will be accepted by WSO2 Identity Platform before returning the response.

schemasarray of stringYes

This is the schema that is required for sending bulk requests

Operationsarray of BulkUserReplaceObYes

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
NameTypeRequiredDescription
failOnErrorsinteger

The number of errors that will be accepted by WSO2 Identity Platform before returning the response.

schemasarray of stringYes

This is the schema that is required for sending bulk requests

Operationsarray of BulkUserDeleteObYes

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
NameTypeRequiredDescription
failOnErrorsinteger

The number of errors that will be accepted by WSO2 Identity Platform before returning the response.

schemasarray of stringYes

This is the schema that is required for sending bulk requests

Operationsarray of BulkGroupCreateObYes

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
NameTypeRequiredDescription
failOnErrorsinteger

The number of errors that will be accepted by WSO2 Identity Platform before returning the response.

schemasarray of stringYes

This is the schema that is required for sending bulk requests

Operationsarray of BulkGroupUpdateObYes

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
NameTypeRequiredDescription
failOnErrorsinteger

The number of errors that will be accepted by WSO2 Identity Platform before returning the response.

schemasarray of stringYes

This is the schema that is required for sending bulk requests

Operationsarray of BulkGroupReplaceObYes

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
NameTypeRequiredDescription
failOnErrorsinteger

The number of errors that will be accepted by WSO2 Identity Platform before returning the response.

schemasarray of stringYes

This is the schema that is required for sending bulk requests

Operationsarray of BulkGroupDeleteObYes

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
NameTypeRequiredDescription
methodstringYes

The method that should be used in the operation

pathstringYes

Add this path to specify that a new user is being added.

bulkIdstringYes

A unique identifier for the bulk operation. The bulkid is required for POST operations.

dataobjectYes

Specify the details of the new user that should be added.

data.schemasarray of stringYes

Specify the list of SCIM2 user schemas to which the new user should be linked.

data.userNamestring

The email address that should be set as the username.

data.passwordstringYes

The password that is set for the user.

BulkUserUpdateOb​

Type: object

7 properties
NameTypeRequiredDescription
methodstringYes

The method that should be used in the operation

pathstringYes

Add this path to specify the new user that is being updated. (Optional if op is add or replace)

bulkIdinteger

A unique identifier for the bulk operation. The bulkid is required for POST operations.

dataobjectYes

Specify the details of the new user that should be updated.

data.opstringYes

The operation that should be applied to the existing user data.

data.pathstringYes

The path to the resource (user attribute) that should be updated. (Optional if op is add or replace)

data.valuestringYes

The value of the parameter specified by the path. (Optional if op is add or replace)

BulkUserReplaceOb​

Type: object

7 properties
NameTypeRequiredDescription
methodstringYes

The method that should be used in the operation

pathstringYes

Add this path to specify the existing user that should be replaced by the new user information that is added.

bulkIdinteger

A unique identifier for the bulk operation. The bulkid is required for POST operations.

dataobjectYes

Specify the new user details that should be used to replace the existing user specified in the path.

data.schemasarray of stringYes

Specify the list of SCIM2 user schemas to which the new user should be linked.

data.userNamestringYes

The name of the attribute that will be replaced.

data.nameobjectYes

The name of the attribute that will be replaced.

BulkUserDeleteOb​

Type: object

2 properties
NameTypeRequiredDescription
methodstringYes

The method that should be used in the operation

pathstringYes

Add this path to specify the existing user that should be deleted.

BulkGroupCreateOb​

Type: object

6 properties
NameTypeRequiredDescription
methodstringYes

The method that should be used in the operation

pathstringYes

Add this path to specify that a new user group that should be added.

bulkIdinteger

A unique identifier for the bulk operation. The bulkid is required for POST operations.

dataobjectYes

Specify the details of the new user group that should be added.

data.displayNamestringYes

The display name of the user group.

data.membersarray of object

An array of member users.

BulkGroupUpdateOb​

Type: object

7 properties
NameTypeRequiredDescription
methodstringYes

The method that should be used in the operation

pathstringYes

Add this path to specify the user group that should be updated.

bulkIdinteger

A unique identifier for the bulk operation. The bulkid is required for POST operations.

dataobjectYes

Specify the details that should be updated for the user group specified in the path.

data.opstringYes

The operation that should be applied to the existing user group.

data.pathstringYes

Specify “members” as the path.(Optional if op is add or replace)

data.valuearray of objectYes

An array of users that belong to the group.(Optional if op is remove)

BulkGroupReplaceOb​

Type: object

6 properties
NameTypeRequiredDescription
methodstringYes

The method that should be used in the operation

pathstringYes

Add this path to specify the existing user group that should be replaced by the new information that is added.

bulkIdinteger

A unique identifier for the bulk operation. The bulkid is required for POST operations.

dataobjectYes

Specify the new group details that should be used to replace the existing user group specified in the path.

data.displayNamestringYes

The display name of the user group.

data.membersarray of objectYes

Array of member users.

BulkGroupDeleteOb​

Type: object

2 properties
NameTypeRequiredDescription
methodstringYes

The method that should be used in the operation

pathstringYes

Add this path to specify the existing user group that should be deleted.

BulkUserResponseObject​

Type: object

2 properties
NameTypeRequiredDescription
schemasarray of string
OperationsOperationObBulk

OperationObBulk​

Type: object

5 properties
NameTypeRequiredDescription
bulkIdstring
methodstring
locationstring
statusobject
status.codestring

ErrorUnauthorized​

Type: object

3 properties
NameTypeRequiredDescription
schemasstring
detailstring
statusstringYes

ErrorForbidden​

Type: object

3 properties
NameTypeRequiredDescription
schemasstring
detailstring
statusstringYes

Was this page helpful?