okta / okta-sdk-python

Apache License 2.0
240 stars 142 forks source link

The update_user method doesn't work reliably with string arrays #390

Open mm-irvingleonard opened 9 months ago

mm-irvingleonard commented 9 months ago

On an Okta instance sourcing users from a directory (Workday) while doing an update_user on a user profile containing an empty string array inherited from a profile source will fail with the error Okta HTTP 403 E0000023 Operation failed because user profile is mastered under another system.

The problem seems to be related to the difference of opinions that the sdk and the Okta server have of what an "empty string array" is. The sdk omits the attribute from the response (probably the correct interpretation) since "it's empty" but apparently the server sees '[""]' -> null, tries to perform the update and fails.

To replicate: