# API Response differs from Documentation

**URL:** <https://community.cumulocity.com/t/api-response-differs-from-documentation/14250>\
**Category:** Forum\
**Tags:** platform-services, cumulocity\
**Created:** [February 4, 2026, 9:55am UTC](https://community.cumulocity.com/t/api-response-differs-from-documentation/14250 "2026-02-04T09:55:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bheneka](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@bheneka](https://community.cumulocity.com/u/bheneka)\
**Post date:** [February 4, 2026, 9:55am UTC](https://community.cumulocity.com/t/api-response-differs-from-documentation/14250/1 "2026-02-04T09:55:23Z")

</div>

When calling the **GET /user/{tenantId}/users/{id}** endpoint (GET /User API: [https://cumulocity.com/api/core/#operation/getUserResource](https://cumulocity.com/api/core/#operation/getUserResource)), I’m seeing a mismatch between the documentation and the actual response.

According to the docs, the response should include fields like `firstName`, `lastName`, and `displayName` (example model shown in the documentation). However, in my response these fields are missing (specifically: `firstName`, `lastName`, `displayName`).

Is there a prerequisite, permission, or request parameter I’m missing, or is this expected behavior in certain cases?

---

<div class="post-metadata">

**Author:** ![Harald\_Meyer](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/harald_meyer/32/1959_2.png) [@Harald\_Meyer](https://community.cumulocity.com/u/Harald_Meyer)\
**Post date:** [February 4, 2026, 10:53am UTC](https://community.cumulocity.com/t/api-response-differs-from-documentation/14250/2 "2026-02-04T10:53:26Z")

</div>

Hi,

these are optional fields, so they are only included if these fields are actually populated for a specific user. I checked this for both a user who has the fields populated and for a user where they are not provided. In the first case they are included in the response.

Best regards,  
Harald
