Encountering an issue when trying to deactivate a user through Okta XaaS using the Bulk Delete API. After deactivating the user successfully first time, when we attempt to deactivate the same user again, the session status remains in the “CREATED” state. Upon calling the Start Import API, receive the following error:-
{‘errorCode’:‘E0000001’,‘errorSummary’:‘Api validation failed: sessionId’,‘errorLink’:‘E0000001’,‘errorId’:‘oaeTrwMoIzeTdiV4J612V6EYQ’,‘errorCauses’:[{‘errorSummary’:‘Session should be in IN_PROGRESS status in order to be processed.’}]}
Below are the steps we are following-
- created an identity source session
- uploaded the user details using bulk delete API
- invoked start import API
Could you please clarify why the session status remains in the “CREATED” state, and how we can resolve the error to proceed with the Start Import API?
Note- As per the Okta documentation, the session status should be either “CREATED” or “IN_PROGRESS” to call the Start Import API.