
RajeshD.00986 (Customer) asked a question.
we have an provisioning from SCIM to okta for creating an user, deleting an user, updating attributes.
we are observing error while provisioning the users from okta to scim.
Automatic provisioning of user XXXX to app SCIM 2.0 Test App (Header Auth) failed: Error while trying to import user profile for XXXXXX: Error setting property, appUser=XXXXXXX property=roles error=[Error in object 'appUser': codes [invalidValueTypeForProperty.appUser,invalidValueTypeForProperty]; arguments [roles]; default message [Invalid value data type]]
The datatype for roles is String array and even we tried integer also, but getting the same error.
can someone help us.

Hi @RajeshD.00986 (Customer) , Thank you for reaching out to the Okta Community!
Checking to see if the attribute type is correct would have been my first recommendation, but you've already mentioned that the role attribute is as string array.
So, the app may be properly configured, but perhaps the user in question does not have the proper attribute in their profile
Another thing to look at is the mappings. Okta Admin Dashboard→ Directories→ Profile Editor→ <app name>→Mappings - perhaps there is a misconfiguration there.
If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you.
Hope my answer helps!