-
Notifications
You must be signed in to change notification settings - Fork 154
Open
Description
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
- https://github.com/okta/okta-sdk-python?tab=readme-ov-file#update-a-user
- Passing the updated AppUser object to
app_user
param - Convert the AppUser to a dict and pass the dict to
app_user
param - Adding
assignment: {givenName, familyName}
property to the User dict - Adding
giveName
andfamilyName
directly to the User dict - Adding
give_name
andfamily_name
to User profile (based on sample on Okta API Doc, I thought maybe there is some sort of mapping?) - I even pass the original AppUser (without modification) to app_user, still the same error
Metadata
Metadata
Assignees
Labels
No labels