I am currently testing the performance of our bulk user provisioning script. We need to create over five hundred new agents for a seasonal rollout. I am using the /api/v2/users endpoint to create them one by one, but I am seeing significant latency and occasional 504 Gateway Timeout errors from the API. Is there a bulk user creation endpoint that I should be using instead, or should I be running these requests in parallel with a specific concurrency limit?
Hello Sil79. I am a Salesforce admin and I have seen these timeouts during our initial migration. There is no ‘Bulk User’ creation endpoint in the Platform API. You have to create them individually. However, you should definitely use ‘Asynchronous’ requests. Instead of waiting for each user to be created, send the requests in parallel with a concurrency of about ten. If you go higher than that, you will start hitting the global rate limits for your organization.
Greetings! I am a gamification admin and I love seeing these large-scale rollouts! To follow up on Tar35, please make sure you are also handling the ‘SCIM’ API if you have a compatible identity provider like Azure AD or Okta. The SCIM API is designed for bulk provisioning and it is much more efficient than hitting the standard users endpoint five hundred times. It also handles the role and group assignments in a single workflow, which will save you a lot of time in your deployment!