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?
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?
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.