# Security concern: Bypassing Account Restriction for individual ownership in Liferay Objects

**URL:** <https://discuss.liferay.com/t/security-concern-bypassing-account-restriction-for-individual-ownership-in-liferay-objects/583>\
**Category:** General\
**Tags:** liferay-objects\
**Created:** [May 6, 2026, 10:22pm UTC](https://discuss.liferay.com/t/security-concern-bypassing-account-restriction-for-individual-ownership-in-liferay-objects/583 "2026-05-06T22:22:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![YieudaLaurentBako](https://avatars.discourse-cdn.com/v4/letter/y/ba9def/32.png) [@YieudaLaurentBako](https://discuss.liferay.com/u/YieudaLaurentBako)\
**Post date:** [May 6, 2026, 10:22pm UTC](https://discuss.liferay.com/t/security-concern-bypassing-account-restriction-for-individual-ownership-in-liferay-objects/583/1 "2026-05-06T22:22:13Z")

</div>

Hi everyone!

I’m facing a security challenge regarding **Account Restriction** in Liferay Objects (7.4).

**Context:** I have an object (e.g., Payroll) with “Account Restriction” enabled. This correctly isolates data between different accounts. However, inside a single account, I have two types of users: **Admins** and **Employees**.

**The Problem:**

- **Admins** should see all payrolls for the account.

- **Employees** should ONLY see their own payroll entries.

- Currently, an employee can call /o/c/payrolls and see _every_ payroll in the account because they all share the same accountEntryId.

**What I’ve considered:**

- **Client-side filtering:** Not secure (anyone can bypass it via DevTools/API).

**Question:** What is the “Liferay-way” to enforce row-level security within an account-restricted object ?

Thanks for your insights!
