Bulk User Management API lets you use the contents of a json file to create or modify several users in one operation.
There is no limit to the number of records that can be uploaded, but it is recommended that requests are performed in smaller batches.
This process can also be performed in the CCAI Platform portal by following the instructions in the Bulk user management.
Roles and permissions
Use the Apps API by creating an api_user.
The api_user does not have roles and permissions, so all api_users can perform
bulk_user management
.You cannot set granular permissions when utilizing api_user, so the api_user will have access to all user fields.
Add an API credential
In the CCAI Platform portal, go to Settings > Developer Settings > API Credential management.
Click + Add API Credential. An Add API Credential message will open.
Enter a Name for the credential.
Click Create.
Bulk User Management API is a 2 step process
Upload a json file.
Request processing.
Upload the json file
Usage |
Upload the json file |
URL |
apps/api/v1/bulk/users/upload |
Method |
POST / PUT |
Request |
content-type: multipart/form-data
|
Response |
Header:
Body
|
Retrieve json template (if necessary)
Usage |
Template |
---|---|
URL |
apps/api/v1/bulk/users/template |
Method |
GET |
Request |
(Empty) |
Response |
|
Request processing of the current json file
Usage |
Request processing of current json file |
URL |
/v1/bulk/users/proceed |
Method |
POST |
Request |
|
Response |
Header:
Body
|
Get a status check
Usage |
Get a status check |
URL |
apps/api/v1/bulk/users/jobs/#{job_id} |
Method |
GET |
Request |
Path variable - |
Response |
|
Retrieve updated job list
Usage |
Get update job list |
URL |
apps/api/v1/bulk/users/jobs |
Method |
GET |
Request |
|
Response |
Header
Body
|
Note |
The output is sorted in reverse order of job_id so that the most recent data comes first. |
Retrieve scheme error logs
Usage |
Get scheme error logs |
URL |
/v1/bulk/users/errors/scheme/#{job_id} |
Method |
GET |
Request |
Path variable - |
Response |
content-type: application/json
|
Retrieve errors
Usage |
Get update error logs |
URL |
/v1/bulk/users/errors/update/#{job_id} |
Method |
GET |
Request |
Path variable - job_id |
Response |
content-type: application/json
|