November 25, 2026

Querying Yardi User Permissions with SQL: PMUSER, PMGROUP, and ISECURITY2

"Which users can post a manual charge?" sounds like a question about one person. In Yardi Voyager it is a question about three tables and a sparse grid, and most forum answers get the encoding wrong in a way that quietly turns a denied permission into a granted one.

The fix is not a cleverer join. It is reading the two columns behind the front-end access dropdown in the right order — and knowing which of the four access labels a given row actually represents.

Users map to groups one direction; groups map to users the other

PMUSER is the user account table: SCODE is the username, SEMAIL the address, HMY the primary key. Each user belongs to exactly one primary security group, through PMUSER.HGROUP → PMGROUP.HMY. A group, by contrast, has many users — the relationship is one-to-many from the group's side, and treating it the other way is how people end up modelling secondary memberships the base table does not have.

Per-user settings worth carrying into an access review: bInactiveUser, bReadOnly, bForcePwdChange, DTPWDEXPIRES with iPasswordDays (password expiry), IPAST / IFUTURE / iDaysPast / iDaysFuture (the accounting-period window the user can reach), HPROPLIST (property/portfolio scope), and bInternationalAccess. One hard rule: never select or expose PMUSER.SPASSWORD in any query, report, or export — it is not needed for a permissions audit and should not leave the database.

PMGROUP holds the group definition. Its sDesc is not unique — identify a group by HMY, never by name, or a permissions report will merge two groups that share a label. Group-level configuration includes SBOOKS (book access), iPeriodType / iPeriods / bShowOpenPeriod (accounting-period access), and the journal-entry restriction flags bNoJECash / bNoJEAccrual / bBothJEOnly.

The permission grid is ISECURITY2

ISECURITY2 is the object-permission grid, one row per combination of (HGROUP, IOBJTYPE, SOBJNAME). This is the table behind the front-end Security > Set Permissions screen — not a derived view of it. HGROUP points at the group, SOBJNAME is the secured object (a menu item, a page action, a report, a workflow, a data object), and IOBJTYPE says which category that object belongs to.

The grid is sparse. A cell that is not present is not "unknown" — it is No Access. A query reading only rows from this table shows the grants and denies that were explicitly set, not the complete effective picture.

The Access Type dropdown is two columns, and the order you read them matters

The front end offers four access labels: No Access, Access, Read, Read-Write. They are encoded as a pair of columns, not a single graded field:

Read bPermission first, because it decides which of the two columns carries the answer. A deny row and a grant row with the same IACCESS are different permissions, and the level stored underneath a deny is not an access level at all.

The trap on deny rows

On a deny row (bPermission = 0) the stored IACCESS is residual — usually 2 — and must be ignored. A row with bPermission = 0 and IACCESS = 2 is No Access, not Read/Write. This is the mistake most forum answers make: they read IACCESS alone, decode 2 as Read/Write, and report that a group has edit rights on an object it is explicitly denied.

Two more quirks. Which access types an object exposes depends on the object: menu items and functions take No-Access or Access, while data objects and page actions take No-Access, Read or Read-Write. So IOBJTYPE 2 legitimately carries both IACCESS 0 and IACCESS 2 — do not assume functions are IACCESS-0-only. And IACCESS 1 (Read) is genuinely rare in practice.

IOBJTYPE is the object category (SecurityObjectType 0-5)

IOBJTYPE is the securable-object category, decoded by the SecurityObjectType enum:

One useful consequence: the menu, function and field levels of Voyager's security framework all live inside ISECURITY2, but the portfolio and accounting-period levels do not — portfolio scope is PMUSER.HPROPLIST plus property lists, and accounting-period access is PMGROUP.iPeriods with PMUSER.IPAST / IFUTURE.

Optional per-group data scope: GroupObj

GroupObj is optional, per-group data scoping. Rows link hGroup → PMGROUP alongside hAcct → ACCT (a GL account), hChargtyp → CHARGTYP (a charge code), and hAcctTree (an account tree). A group with no GroupObj rows is unrestricted on those dimensions — not restricted to nothing.

Menu sets: pmgroupmenus and the single default

A group can be assigned many menu sets through pmgroupmenus, and pmgroupmenus.bDefault flags the one default set for that group — Yardi true is -1/non-zero, 0 is non-default. A user lands on their group's default set, so when someone reports "my menu is missing screens," check which set is flagged default. Security configuration is portable via Menu/Security Packages, and the configuration audit trail lives in PMUserAudit / PMUserAuditDetail.

Query 1 — active users and their group

SELECT LTRIM(RTRIM(u.SCODE)) AS user_name,
       g.sDesc               AS security_group,
       u.SEMAIL,
       u.bReadOnly,
       u.DTPWDEXPIRES
FROM PMUSER u
  LEFT JOIN PMGROUP g ON g.HMY = u.HGROUP
WHERE u.bInactiveUser = 0
ORDER BY g.sDesc, u.SCODE;

Query 2 — a group's effective permissions, decoded

SELECT g.sDesc     AS security_group,
       s.IOBJTYPE,
       s.SOBJNAME  AS secured_object,
       CASE
         WHEN s.bPermission = 0                    THEN 'No Access'
         WHEN s.bPermission = -1 AND s.IACCESS = 2 THEN 'Read/Write'
         WHEN s.bPermission = -1 AND s.IACCESS = 1 THEN 'Read'
         WHEN s.bPermission = -1                   THEN 'Access'
         ELSE 'Unset'
       END         AS access_type
FROM ISECURITY2 s
  LEFT JOIN PMGROUP g ON g.HMY = s.HGROUP
WHERE s.HGROUP = @GroupHMY
ORDER BY s.IOBJTYPE, s.SOBJNAME;

Note the shape of the CASE: the deny test comes first, and the IACCESS levels are only evaluated inside the grant branch. Swapping that order is the most common way this decode goes wrong.

Reusing the audit columns for "who has been touching charges"

The audit columns — hUserCreatedBy, hUserModifiedBy, hUserCreated — appear on thousands of Voyager tables and all reference PMUSER.HMY. They are audit metadata, so use them for "who changed this" questions and never as business join paths. Join back to the user:

SELECT u.SCODE AS last_touched_by,
       COUNT(*) AS charge_lines
FROM CAMCHARG c
  JOIN PMUSER u ON u.HMY = c.hUserModifiedBy
GROUP BY u.SCODE
ORDER BY COUNT(*) DESC;

Confirm the audit column exists on the specific table first — coverage is wide but not universal. These columns record the last modifier, not a full change history.

Where this leaves you

Access control in Voyager resolves cleanly once you accept three rules: users point at one group while groups point at many users, the permission grid is sparse so absence means No Access, and the four access labels are a pair of columns read bPermission first with deny taking precedence. IOBJTYPE categories, GroupObj data scope and the default menu set are dimensions to slice by, not different mechanisms. PropETL's SQL Query Assistant carries all of it as execution-verified query knowledge inside Claude.

Featured on FoundrListFeatured & Verified on TrustMRRPropETL on PeerPushLaunchpadly Startup DirectoryPropETL — Featured on LaunchBuck