Skip to content

Okta HTTP 400 E0000001 Api validation failed: Property not found (when they are available in payload) #421

@qbui-os

Description

@qbui-os

Okta version: 2.9.8

Descriptions

Hi, I am trying to update an Application User profile using update_application_user() but keep encountering this error:

Okta HTTP 400 E0000001 Api validation failed: assignment\nProperty 'givenName' not found. Property 'familyName' not found"

The problem is, givenName & familyName properties are already existing inside the User profile payload & not NULL. I cannot provide the payload due to customer data protection policy, but the profile looks something like this.

'profile': {'streetAddress': '',
  'zoneinfo': 'America/Los_Angeles',
  'locale': 'en-US',
  'nickname': 'aasdsad',
  'email': 'example@gmail.com',
  'locality': '',
  'givenName': 'asasc',
  'accountId': 'someId',
  'name': 'asasc aaaa',
  'phoneNumber': '',
  'userType': 'some type',
  'region': '',
  'familyName': 'aaaa'},

What I have done

  1. https://github.com/okta/okta-sdk-python?tab=readme-ov-file#update-a-user
  2. Passing the updated AppUser object to app_user param
  3. Convert the AppUser to a dict and pass the dict to app_user param
  4. Adding assignment: {givenName, familyName} property to the User dict
  5. Adding giveName and familyName directly to the User dict
  6. Adding give_name and family_name to User profile (based on sample on Okta API Doc, I thought maybe there is some sort of mapping?)
  7. I even pass the original AppUser (without modification) to app_user, still the same error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions