1 / 13
← → navigate · Esc overview · F fullscreen · T theme · N notes
Merit · Seller Platform · 26 Oct 2026

Who can do what

Roles, permissions and identity in the Merit Seller Portal.
Two role spaces, one identity backbone, one token shape for both.

Companion to the PRD: Seller Portal RBAC and Identity AFM-2.1 · AFM-26 · AFM-26.6
Notes
Audience: Tintash engineering and Merit product. Companion to the PRD "Seller Portal Roles, Permissions and Identity Integration", 26 Oct 2026.
Why now

Five open questions block AFM-2.1

  • Seller Portal has one seller role today. Every team member shares its full power.
  • Merit staff have no access to seller portals in the new stack.
  • Heba's AFM-26 comment, 26 Oct: five decisions open, sizing blocked.
  • Unified login is live since 14 Sep. The identity backbone already exists.

Heba's five questions

  1. Permission matrix per Merit role
  2. Role names
  3. Merit roles only, or seller roles too?
  4. One role per person, or more?
  5. Who assigns Merit staff roles?
Notes
Proposed answers are on slide 13, each sourced in the PRD.
The concept

Two role spaces on one identity backbone

Space A · Merit staffOps Admin, Ops Agent, Finance. Tenant wide: every seller, every order. Merit SSO.
Space B · Seller orgPIC plus flat function roles. Scoped to one seller organisation. Unified login.
→
Identity ServiceOne login per person. No identity, no access.token = set of {tenant, role} memberships
→
seller-portal-be-serviceEnforces the matrix at the API
seller-portal-fe-appRenders allowed menus only

The spaces never inherit. A Merit employee is never a seller-org member; staff enter a portal only through Super Admin, with an audit trail.

Notes
The one-line concept: two spaces, one backbone, one token shape.
Role space A

Three Merit roles work across every seller

Merit Ops Admin

View any order, cancel, refund, edit. Assigns Merit roles. Holds the Super Admin capability.

Merit Ops Agent

View any order and cancel it. Cannot refund.

Merit Finance

View any order with its payment and refund records. Read only.

System actor: OMS state changes by service token, no human login Every action audit logged (ADM-5) PII masked for staff; unmask = AFM-6.8 Super Admin is a capability, not a fourth role
Notes
Capability split from the Admin Console PRD v0.3 roles table.
Role space B

One PIC, flat roles, everyone starts with none

PIC · ownerexactly one per org
Operations
Picker / Packer
Finance
Commercial and Marketing: later, as templates

Roles under the PIC are flat. Several users can share a role.

  • A new seller's first user becomes the PIC.
  • Invited members start with no role until the PIC assigns one.
  • Account settings are PIC only, behind Dual-Trust 2FA.
  • Team management is PIC only.
  • Promotion delete and gift-card code reveal are PIC only.
Notes
Rules from RBAC v1.0 (16 Feb 2026) sections 5, 7.3 and 4.8 to 4.11. Default no role is what makes invites safe.
Build list

December ships four seller roles

The AFM-26.6 build list, mapped to the RBAC v1.0 names. Decided by Brian on 26 Oct (decision 6).

Build roleRBAC v1.0 nameScope in the portal
AdminPIC, ownerEverything, plus team and account settings
Store ManagerOperationsOrders, inventory, shipping, operations reports
Picker / PackernewPick list, packing slip, ship confirmation
FinanceFinanceSettlements, payouts, financial reports
Commercial, Marketingv1.0 roles 4 and 5Deferred: return as role templates later
Notes
Decision 6, decided 26 Oct: build the four now, keep PIC and Operations as canonical names.
Permissions · click a role

Full, View or None, per menu, enforced at the API

● Full● View● None, menu not renderedPII masked for everyone before order acceptance
Notes
Matrix from RBAC v1.0 section 3. The UI is cosmetic; the API denies by default.
Enforcement

Identity says who. The API says allowed. The UI only renders.

identity-serviceAuthentication. Membership and role claims in the token.
↓
seller-portal-be-serviceAuthorization. Every endpoint checks the role. Deny by default.
↓
seller-portal-fe-appHides menus, greys out actions, shows a denial page.

Rules that make it real

  • Hidden menus are not rendered at all
  • Direct URL to a blocked page shows a denial message
  • Failed attempts are logged
  • API keys inherit the PIC scope
  • One login per person, no shared accounts
Notes
RBAC v1.0 sections 6 and 7. The front end is never the security boundary.
Identity integration

One token, many memberships

AFM-6.3 and 6.4 replace the single tenantId claim with a set. Each membership carries its own role.

Seller team member's token
{ "sub": "user_8412", "memberships": [ { "tenant": "seller_alnoor", "role": null }, { "tenant": "seller_saudia", "role": "finance" } ] }
  • The role is checked per active tenant, never globally.
  • null = invited but unassigned: no menus.
  • A Merit staff token has the same shape: one merit-internal membership.
  • Seller orgs are identity organisations; the PIC owns them.
Notes
The design move: build roles on the AFM-6 membership set. Staff never hold seller-org roles; they enter via Super Admin.
Lifecycle

Invite to access in five steps

1
PIC invitesfrom Team Management
→
2
Account createdrole is null
→
3
Password setinvite-only SSO
→
4
Role assignedby the PIC
→
5
Accesswrites audit logged

Between steps 2 and 4 the member can log in but sees nothing. Starting with no role is the safety property.

Notes
Invite-only SSO (AFM-6.9) plus RBAC v1.0 section 7.3.
Governance

Staff enter with Super Admin, and every action is logged

Merit Ops Adminholds the Super Admin capability
↓ opens
Any seller portalfor support and governance
↓ records
ADM-5 audit logacting user, action, target, time
  • A capability, not a fourth role (v1.0 decision 3).
  • The session records the acting Merit user.
  • The audit log cannot be edited.
  • PII stays masked; unmask is AFM-6.8, open.
Notes
Keeping Super Admin as a capability keeps both role lists clean.
Roadmap

Merit roles now, seller multi-user in December

Now · AFM-2.1

Three Merit roles on Merit SSO, System actor, Super Admin, admin audit log. Merit role matrix final.

December · AFM-26.6

Seller multi-user: invites, role assignment, four roles, API enforcement, per-user audit log.

Later · granular

Users, roles, permissions. Fixed roles become templates the PIC can copy. Commercial and Marketing return.

Notes
AFM-2.1 unblocks as soon as the five decisions land.
Decisions

Six decisions made, one still open

#QuestionRecommendationStatus
1Permission matrix per Merit role17-area matrix, posted on AFM-26decided
2Role namesOps Admin, Ops Agent, Financedecided
3Merit roles only this release?Yes; fix the "five seller roles" wordingdecided
4One role per person?One per membership, exceptions case by casedecided
5Who assigns Merit roles?Ops Admin; first one provisioned at rolloutdecided
6Seller role namingBuild the four; defer Commercial and Marketingdecided
7PII unmask by staffAFM-6.8, with Legalopen

Sources: RBAC v1.0 (16 Feb 2026) · Admin Console PRD v0.3 · AFM-6 · AFM-26 · PRD Seller Portal RBAC and Identity

Notes
Rows 1 to 6 decided by Brian on 26 Oct 2026 (DEC-0530 and decision 6). Row 7 waits on Legal.