Fixing the "Property emailType Not Found" Error in Runscope Tests in Okta
Last Updated:
Overview
When using Runscope to validate a SCIM integration and the Runscope tests attempt to create an Okta user, Okta returns the error "Property 'emailType' not found" because the emailType attribute is missing from the instance generated by the Test Wizard. Resolve this issue by adding a custom attribute and configuring the mappings in the Okta Admin Console.
Applies To
- Okta Integration Network (OIN) Submissions
- System for Cross-domain Identity Management (SCIM)
- Runscope Test Wizard
- Okta Identity Engine (OIE)
- Okta Classic Engine
Cause
The Runscope SCIM test suite expects a standard emailType property (such as 'work') mapped in the app profile schema. If emailType is missing from the SCIM application's custom profile schema or user mappings in Okta, API validation fails during test execution.
{
"errorCode": "E0000001",
"errorSummary": "Api validation failed: retryAppUser",
"errorLink": "E0000001",
"errorId": "oae-HLiFwoXSQaRHzdKnMuCNw",
"errorCauses": [
{
"errorSummary": "Property 'emailType' not found"
}
]
}
Solution
How is the missing emailType attribute error resolved?
Add a custom attribute and configure the mappings by following the steps below.
-
In the To App section of the Provisioning tab, select Go to Profile Editor.
-
Select Add Attribute.
-
Create an attribute named
emailType. -
Select Mappings.
-
In the Okta User to <App name> section, enter the following expression:
(user.email != null && user.email != '') ? 'work' : ''
After these steps are completed, the attribute will appear as shown below:
