PREPROD
ReaderAuthor

piper

Session User

`userId` on a Session identifies which User is logged in, linking the session token to that user's profile, roles, and site access grants.

1 min read · 2 depth levelsstratum-piper · vdevMatches production
Everyday

The Session userId ties an active login to a specific User record. When a request arrives with a session token, piper resolves the userId to look up that user's SiteAccess grants and UserTenant role. This determines what actions the user may perform — Admin, Editor, or Viewer — across each site they have access to. Without a valid userId on an active session, all data access is denied.

Technical section
Data model, API, and internals — visible to developers.
View as developer →
Was this helpful?