# Least privilege on Liferay: why shared admin access is a security design gap

**URL:** <https://discuss.liferay.com/t/least-privilege-on-liferay-why-shared-admin-access-is-a-security-design-gap/1134>\
**Category:** Security\
**Created:** [November 3, 2026, 5:56am UTC](https://discuss.liferay.com/t/least-privilege-on-liferay-why-shared-admin-access-is-a-security-design-gap/1134 "2026-11-03T05:56:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Papu\_Sahu](https://dub1.discourse-cdn.com/flex014/user_avatar/discuss.liferay.com/papu_sahu/32/819_2.png) [@Papu\_Sahu](https://discuss.liferay.com/u/Papu_Sahu)\
**Post date:** [November 3, 2026, 5:56am UTC](https://discuss.liferay.com/t/least-privilege-on-liferay-why-shared-admin-access-is-a-security-design-gap/1134/1 "2026-11-03T05:56:52Z")

</div>

In many Liferay setups, content updates are treated as a simple CMS task. In practice, teams often share admin credentials so developers can “just make the change.”

That is not convenience. That is a security design gap.

Liferay already provides what we need: roles, permissions, site membership, and scoped access. A content editor should only see and change what their job requires — not every site, every app, every Control Panel option.

## Why this matters in production

- One portal can run multiple instances, sites, and applications
- Admin / shared access breaks accountability — you cannot clearly answer who changed what
- Privileges like App Manager / module deployment are high risk — once someone can deploy OSGi modules, the blast radius goes far beyond “content”
- Over-permissioned users can reach configuration, filesystem areas, and data layers without needing an external breach
- Lower environments with production-like data are still sensitive — weak access there is still a data leak

## A concrete example

I built a Liferay Control Panel module — **Liferay Ops Console** — to demonstrate what privileged access can unlock on a running DXP instance:

- Deploy JAR / WAR / LPKG / client-extension packages
- Browse and manage OSGi folders and bundles
- Query the database and export results
- Track actions through an audit view

If a user has broad admin-level access, capabilities like these become possible from inside the portal itself.

- Write-up: [Liferay Ops Console · GitHub · code.papu](https://codepapu.in/github/liferay-ops-console-workspace)
- Source: [GitHub - codepapu/liferay-ops-console-workspace: Liferay Workspace module: Control Panel ops console for DXP deploy, OSGi, bundles, database, and audit. · GitHub](https://github.com/codepapu/liferay-ops-console-workspace)

This is not to encourage misuse. It is to show architects and leads why **role design is architecture**.

## What strong portal security looks like

1. No shared admin accounts — every user has an individual identity
2. Map work → custom role → minimum permissions
3. Keep content roles separate from portal / admin / ops roles
4. Prefer site-scoped access over portal-wide access
5. Lock down App Manager, Gogo Shell, marketplace installs, and module deployment in UAT/Prod
6. Restrict Control Panel access; enforce MFA for privileged users
7. Separate duties: content team ≠ infrastructure team ≠ security team
8. Use break-glass admin only for emergencies, with logging and review
9. Enable audit logs and review privileged activity regularly
10. Run access reviews for joiners / movers / leavers
11. Separate environments; never reuse prod admin credentials in lower environments
12. Mask / anonymize production-like data in non-prod
13. Patch Liferay and monitor unusual exports, deployments, and permission changes

## Bottom line

Security is not only firewalls, WAF, and network controls.  
Security is also **who can click what inside the portal**.

If you are an architect, tech lead, senior engineer, portal admin, DevOps/SRE, security engineer, product owner, platform engineer, or part of the CMS/content operations team handling a Liferay portal — treat permission boundaries and privileged-access governance as part of your architecture and day-to-day operations, not an afterthought.

Protect the portal. Protect the data. Give people only what they need to do their job — nothing more.
