Create/Update/Replace/Delete SCIM Resources (Users/ Groups) in Bulk
Changed onThis 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>
-
<b>Scopes required:</b> internal_bulk_resource_create
-
<b>Flow type:</b> Client Credentials OAuth Flow
Request
- Base URLhttps://api.asgardeo.io/t//scim2
- AuthOAuth 2Client credentials
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"failOnErrors": 1,
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:BulkRequest"
],
"Operations": [
{
"method": "POST",
"path": "/Users",
"bulkId": "ytrewq",
"data": {
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:enterprise:2.0:User",
"urn:scim:wso2:schema"
],
"userName": "DEFAULT/kim@gmail.com",
"password": "Pass@kim1"
}
}
]
}Response
Valid user is created
Example response
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:BulkResponse"
],
"Operations": [
{
"bulkId": "qwerty",
"method": "POST",
"location": "https://api.asgardeo.io/t/{org-name}/scim2/Users/81cbba1b-c259-485d-8ba4-79afb03e5bd1"
}
]
}Changes
- breaking
the
///request property type changed fromintegertostring - breaking
the
response's property type changed fromobjecttoarrayfor status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status
- breaking
- breaking
the
///request property type changed fromstringtointeger - breaking
the
response's property type changed fromarraytoobjectfor status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- breaking