<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00008Ogd3lCABOkta Identity EngineWorkflowsAnswered2023-12-04T13:42:20.000Z2022-11-21T21:21:07.000Z2022-11-22T23:33:29.000Z
How to mark user creation failed when workflow API endpoint inline hook validation fails

Hi,

 

I am using workflow as an API endpoint and configured it as the user import inline hook to perform input data validations. The users are being imported from CSV Directory.

 

In case of input validation failures, the return output is sent back to caller in below format.

{"error" : [{"errorSummary": "Employee number value is not numeric."}]}

 

Workflow API endpoint is successfully called on user import from CSV Directory and above message is successfully returned to caller using http API connector. But this error message is not logged on Okta system log and neither user creation is marked as failed.

 

Has anyone implemented this type of input validations? If so, please let us know how to mark the user failed and how to display validation error on system logs?

 

 

Thanks,

Chenna Kesav


  • TimL.58332 (Workflows)

    @Chenna KesavR.38562 (Customer)​ 

     

    Hello,

     

    This is a difficult one to answer as technically what you are attempting to do is not supported in Workflows. See (red zone): https://help.okta.com/wf/en-us/Content/Topics/Workflows/workflows-system-limits.htm

     

    The portion that Workflows is performing is just to "perform some logic" then "return a correctly formatted payload" to the Import process that initiated the inline hook. What is a valid payload that can be returned to the inline hook is not up to Workflows (or any other api end-point doing the processing)

     

    Based on the user import inline hook documentation you should be able to deliver an error response. The structure of that return is documented here:

     

    https://developer.okta.com/docs/reference/import-hook/#error

     

    Your example appears to be an Object containing an (array / list) containing an object. The documentation specifically indicates an object containing an object. That is likely your problem.

    Expand Post
This question is closed.
Loading
How to mark user creation failed when workflow API endpoint inline hook validation fails