
21ykg (21ykg) asked a question.
I am trying to create bulk activated Okta users with password using Postman by importing the csv. I am not able to create the users in Okta and when I run the collection in Postman for imported CSV file with usernames and passwords I am getting errors after the iterations are run per csv file. Any document that helps to work on postman for this creation will be helpful.

@21ykg (21ykg) -- I am not an expert in Postman. However, looking at the following article to "bulk create" groups with Postman I don't see why the process couldn't be applied to other resources.
https://support.okta.com/help/s/article/How-To-Bulk-Create-Groups-Using-Postman-API?language=en_US
Which links to the Postman article:
https://blog.postman.com/using-csv-and-json-files-in-the-postman-collection-runner/
What it looks like to me is the "Runner" reads each line of the CSV and uses the CSV headers as variables and the structure "builds" your JSON payload then executes it against the endpoint.
This means you would need to figure out the payload structure you want from the Users API for creation and dynamically build out the payloads in the same method. There are multiple options for user creation so you will need to review and likely do some manual testing to figure out what you want exactly. Documentation below:
Users Endpoint (Create User)
https://developer.okta.com/docs/api/openapi/okta-management/management/tag/User/#tag/User/operation/createUser
Hi Tim,
Thank you for your response.
When I try to create single user via PSTMAN I am able to. But when try the bulk operation I am getting below error
Getting error "errorCode": "E0000003", "errorSummary": "The request body was not well-formed.", "errorLink": "E0000003",
I am unable to iterate the POST op on users in the CSV that I upload to perform bulk ops in PSTMAN run collection.
@21ykg (21ykg) -- That error indicates the body you are specifying is invalid. Likely something wrong with the structure of the JSON or required components of the JSON are missing.
As far as I can tell the "Runner" in postman is just making a bunch of individual API calls in sequence with the body structure you specify and the "variable" filled out via the CSV.
Thats the issue I am getting in to and I am not sure why the body part is not valid. I tried to use JSON formatter and then place the code in body as raw, but PSTMAN can't map the values of CSV with the variables mapped in body of JSON code. I tried to check the format everything is fine but I dont know why I am getting the error. Also, when I did not get this error I am getting another error 400 BAD REQUEST when I run the PSTMAN collection for Create Activated User with Password using CSV. When I go with single user creation I am able to do so.
Hi Tim,
Thank you for your response.
When I try to create single user via PSTMAN I am able to. But when try the bulk operation I am getting below error
Getting error "errorCode": "E0000003", "errorSummary": "The request body was not well-formed.", "errorLink": "E0000003",
I am unable to iterate the POST op on users in the CSV that I upload to perform bulk ops in PSTMAN run collection.