Retrieving and Updating User Profile via the Okta API Skip to main content
https://support.okta.com/help/answers?id=9062a000000xa53qac&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Robert BercikRobert Bercik 

Retrieving and Updating User Profile via the Okta API

I'm trying to update some custom user properties via the Okta API. However only a small subset of Profile elements are returned after a call to getUser (https://developer.okta.com/docs/api/resources/users.html#get-user-with-id), the 6 elements that are listed in the example response are the only elements returned (although the default user profile is much larger 23+ elements). I would like to get all of the user profile elements and update an attribute as needed. What is the correct way to do this via the API?
Razvan NegriRazvan Negri (Okta, Inc.)
Hi Robert,

Make sure the attributes are also mapped to the default (Okta) schema if using direct Get User.

Check the following resources as well:
1. https://developer.okta.com/docs/api/resources/users.html#custom-profile-properties
2. https://developer.okta.com/docs/api/resources/schemas.html

Regards,
Razvan Negri
Connie DeCinkoConnie DeCinko
I just discovered that the profile properties are not returned if the value is empty.  I would have expected a null or empty string to be returned, with every property returned.