# For the /api/v1/users endpoint response, why are profile.firstName and profile.lastName documented as being nullable?

**URL:** <https://devforum.okta.com/t/for-the-api-v1-users-endpoint-response-why-are-profile-firstname-and-profile-lastname-documented-as-being-nullable/35219>\
**Category:** API\
**Created:** [April 12, 2026, 4:23pm UTC](https://devforum.okta.com/t/for-the-api-v1-users-endpoint-response-why-are-profile-firstname-and-profile-lastname-documented-as-being-nullable/35219 "2026-04-12T16:23:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jenip](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@jenip](https://devforum.okta.com/u/jenip)\
**Post date:** [April 12, 2026, 4:23pm UTC](https://devforum.okta.com/t/for-the-api-v1-users-endpoint-response-why-are-profile-firstname-and-profile-lastname-documented-as-being-nullable/35219/1 "2026-04-12T16:23:20Z")

</div>

When adding a user, the following fields cannot be left blank :

 ![image](https://global.discourse-cdn.com/oktadev/original/2X/5/55e7e6525c07f4d0d40e7dcba6dd9d4bf40bab81.png)

However, as shown in [List all users](https://developer.okta.com/docs/api/openapi/okta-management/management/tags/user/other/listusers#other/listusers/t=response&c=200&path=profile/firstname) , profile.​firstName and profile.​lastName are documented as being nullable.

Thus, why are profile.​firstName and profile.​lastName documented as being nullable if they are both required when creating a user.

---

<div class="post-metadata">

**Author:** ![vk-giri](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/vk-giri/32/5178_2.png) [@vk-giri](https://devforum.okta.com/u/vk-giri)\
**Post date:** [April 13, 2026, 2:55am UTC](https://devforum.okta.com/t/for-the-api-v1-users-endpoint-response-why-are-profile-firstname-and-profile-lastname-documented-as-being-nullable/35219/2 "2026-04-13T02:55:08Z")

</div>

Hi,

First name and last name can be made optional if required, as mentioned here - [Make the user profile first and last name optional | Okta Classic Engine](https://help.okta.com/en-us/content/topics/users-groups-profiles/usgp-first-last-optional.htm)

Hence, the documentation states that it can be null.

---

<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:** [April 14, 2026, 2:55am UTC](https://devforum.okta.com/t/for-the-api-v1-users-endpoint-response-why-are-profile-firstname-and-profile-lastname-documented-as-being-nullable/35219/3 "2026-04-14T02:55:53Z")

</div>

Closed on April 14, 2026, 2:55am UTC

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