20% of Part II — turning inbound API calls into new Okta users.
3 tasks · this deck covers task 2 of 3
↑ Use API Endpoints to Create Users OverviewOnce the API Endpoint card (Task 1) delivers an inbound JSON payload, this task is about two things: turning that JSON into usable fields, then feeding those fields into the Okta connector's Create User action card.
The JSON Parse function "parses a JSON string into a typed field, such as an object or a list." It is "the inverse of Stringify." You must "set the type of the output field to match the actual type represented in the string, or you may encounter runtime errors" — and "if the input string isn't in a valid JSON format, Workflows returns a runtime error."
From the parsed object, cards like Object Get Multiple pull out named fields (e.g. username, firstName, lastName, email) as individual outputs you can drag straight into the Create User card's inputs — the same pattern the official tutorial uses to pull id/type/price out of its sample payload.
"When you use a Group ID that corresponds to the default Everyone group in your Okta org, a 501 Not Implemented error occurs." If you're using the "in Group" Profile Option, that Group ID has to be a real, non-default group.
Watch for this in your own sandbox run:
→ Forgetting to set the JSON Parse output field's type to match the incoming payload shape (object vs. list) — mismatches throw runtime errors.
→ Picking the "in Group" Profile Option and pointing it at the org's default Everyone group, triggering the 501 error.
Sources: help.okta.com/wf — function-reference/json/json_parse.htm; Tutorials/processjson-walkthrough/parse-results.htm; connector-reference/okta/actions/createuser.htm
Next: Task 3 →