Issue
- Using the GET Rest API for account-restricted objects does not seem to follow the `fields` and `nestedFields` parameters for the linked account. For example, when querying a custom object and attempting to fetch a specific field from the related account, the API returns the entire account object instead of just the specified field.
Environment
- Liferay DXP 2025.Q1
Resolution
- As of 2025.Q1, this is currently the expected behavior. As account objects are system objects, as opposed to custom objects, they do not have the same degree of flexibility as custom objects. These system objects cannot be modified due to the role they play in the core of the product itself. It is on the roadmap to be addressed in the future but not the short term.
Additional Information