# OKTA User API Customize with required field

**URL:** <https://devforum.okta.com/t/okta-user-api-customize-with-required-field/2357>\
**Category:** API\
**Created:** [August 7, 2018, 6:03am UTC](https://devforum.okta.com/t/okta-user-api-customize-with-required-field/2357 "2018-08-07T06:03:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sajith](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@sajith](https://devforum.okta.com/u/sajith)\
**Post date:** [August 7, 2018, 6:03am UTC](https://devforum.okta.com/t/okta-user-api-customize-with-required-field/2357/1 "2018-08-07T06:03:30Z")

</div>

Hi ,

We are using OKTA users API to get user the Information from OKTA.

The response format is mentioned below. In the response we have thumbnailPhoto which is image type and We don’t want this field in the response data. How can we avoid this?

Can we customize the response format from OKTA?

“id”: “0RR11pzjahNG4OeOe0x9”,  
“status”: “ACTIVE”,  
“created”: “2015-07-09T21:08:03.000Z”,  
“activated”: “2015-07-09T21:08:04.000Z”,  
“statusChanged”: “2015-07-09T21:08:04.000Z”,  
“lastLogin”: “2018-08-06T11:15:54.000Z”,  
“lastUpdated”: “2018-07-23T16:15:37.000Z”,  
“passwordChanged”: null,  
“profile”: {  
“firstName”: “Test”,  
“lastName”: “Seee”,  
“primaryPhone”: “+1.255555”,  
“hireDate”: “4/17/2000”,  
“Delivery\_Office”: “Test RRville”,  
“mobilePhone”: " “,  
“thumbnailPhoto”:”

URl that we use: [https://Test.okta.com/api/v1/users](https://Test.okta.com/api/v1/users)

Thanks  
Sajith

---

<div class="post-metadata">

**Author:** ![nate.barbettini](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/nate.barbettini/32/385_2.png) [@nate.barbettini](https://devforum.okta.com/u/nate.barbettini)\
**Post date:** [August 7, 2018, 3:42pm UTC](https://devforum.okta.com/t/okta-user-api-customize-with-required-field/2357/2 "2018-08-07T15:42:19Z")

</div>

No, you can’t customize the response from `/api/v1/users`. Any custom profile fields that are defined on the Okta profile will be returned.

I am curious why you need to remove `Location` or `thumbnailPhoto`. Are you concerned about the size of the response payload? Is some of the data private information?

---

<div class="post-metadata">

**Author:** ![sajith](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@sajith](https://devforum.okta.com/u/sajith)\
**Post date:** [August 7, 2018, 4:19pm UTC](https://devforum.okta.com/t/okta-user-api-customize-with-required-field/2357/3 "2018-08-07T16:19:03Z")

</div>

Thanks for the quick response.

The thumbnailPhoto is large size and we don’t need to use this field. Because of the size of image it takes time to get response from OKTA.

Is there a way to handle this?

---

<div class="post-metadata">

**Author:** ![nate.barbettini](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/nate.barbettini/32/385_2.png) [@nate.barbettini](https://devforum.okta.com/u/nate.barbettini)\
**Post date:** [August 9, 2018, 12:30pm UTC](https://devforum.okta.com/t/okta-user-api-customize-with-required-field/2357/4 "2018-08-09T12:30:53Z")

</div>

I’d recommend moving data like photos to a proper storage service like S3, and only saving the URL on the Okta profile. That will be cleaner and easier to manage in the long run.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 12, 2024, 10:53pm UTC](https://devforum.okta.com/t/okta-user-api-customize-with-required-field/2357/5 "2024-01-12T22:53:56Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
