SCIM 2.0 provisioning issue

We have SCIM setup and we are trying to provisioning users but getting following error:

User gets created in the database but OKTA shows this error.

Automatic provisioning of user Demo User to app SCIM 2.0 Test App (Basic Auth) failed: Error while creating user Expression Evaluation Error occurred for schema property: email. Please verify your SCIM property externalName in the Profile Editor. Error:EL1015E: Cannot perform selection on input data of type ‘java.lang.String’ Please fix this on the Tasks Page

ExternalName for primary email is : emails.^[primary==true].value

Appreciate any idea on how to fix it.

check, what you return back to Okta as a result of SCIM User Create, might be the returned object doesn’t fit into SCIM schema


What phi1ipp said. Here is an example of the response Okta expects upon user creation: