Problem statement
When attempting a Bulk User Import, the following error is returned:
“{"statusCode":400,"error":"Bad Request","message":"Users file must not be empty","errorCode":"operation_not_supported"}”
Cause
This error can occur when the ‘Users’ file isn’t successfully attached to the request. If the request is occurring programmatically, there may be an issue in the file path for the users file. There could also be a formatting issue within the users JSON file.
Solution
Examples of the proper format can be found here: Bulk User Import Database Schema and Examples
You can confirm that the file is formatted correctly by uploading it directly with the Management API Explorer page or with the Import/Export Extension.