Executive Summary & Key Takeaways
- Flat "Team Member" permissions create an unacceptable internal privacy leak: a coordinator hired to send internship offer letters should never see VP compensation packages, severance agreements, or M&A term sheets.
- DocMe Sign separates organization membership into explicit roles: `Admin` (sees every agreement; manages team, domains, billing, and API keys), `HR` sender (sees only the agreements they created), and signer-only members.
- HR senders send under the organization's branding, signing domain, and sending address, yet can only view, track, and download agreements where `envelopes.created_by = auth.uid()`.
- Isolation is enforced both in the app and directly inside PostgreSQL Row-Level Security (RLS) policies, so a missed filter in one layer does not expose other senders' agreements.
1. The Hidden Internal Privacy Leak in Shared Signing Workspaces
As soon as a company grows past ten employees, contract workflows split across distinct confidentiality boundaries. Founders and General Counsel execute board consents, investor side letters, M&A advisories, and executive employment agreements. Meanwhile, talent acquisition coordinators and People Ops specialists send dozens of candidate NDAs, contractor SOWs, and engineering offer letters every month.
Most mid-market e-signature tools force an uncomfortable choice: either grant every recruiter shared folder visibility—accidentally exposing executive salaries, equity refreshers, and separation agreements—or buy isolated enterprise "sub-accounts" that fragment your company's custom domain and email configuration.
We designed DocMe Sign's organization roles to solve this tension: shared brand infrastructure on the outside, strict row-level isolation on the inside.
2. Organization Roles: Admin, HR Sender, and Signer-Only
Rather than forcing administrators to maintain fragile per-folder ACL checkboxes that inevitably drift over time, DocMe Sign models organizational trust boundaries through a small set of roles on `organization_members`: Admins, HR senders, and signer-only members. The table below compares the two sending roles.
| Capability | Admin | HR Sender (Isolated) |
|---|---|---|
| Send agreements under org custom domain & brand | Allowed | Allowed |
| Send invitations from the org's sending address | Allowed | Allowed |
| View & download own created agreements | Allowed | Allowed (created_by = auth.uid()) |
| View other senders' agreements | Allowed (every agreement in the org) | Denied in Postgres RLS & the app |
| Manage team, domains, billing & API keys | Allowed | Denied |
3. Defense-in-Depth: Enforcing created_by = auth.uid() in PostgreSQL RLS
In security engineering, filtering rows purely inside a frontend dashboard query or a single REST endpoint is an anti-pattern. A forgotten `WHERE` clause on a new search route, an export endpoint, or a client-side Supabase query would immediately leak restricted agreements across roles.
DocMe Sign pushes row authorization down to the database itself using PostgreSQL Row-Level Security (RLS) on Supabase Postgres. Every query made with a signed-in user's token carries `auth.uid()` inside the Postgres transaction context, and PostgreSQL evaluates the row rule before returning a single row.
-- Simplified sketch: admins see every agreement in their organization,
-- HR senders only the ones they created
ALTER TABLE public.envelopes ENABLE ROW LEVEL SECURITY;
CREATE POLICY "envelopes_org_role_select"
ON public.envelopes
FOR SELECT
TO authenticated
USING (
EXISTS (
SELECT 1
FROM public.organization_members AS om
WHERE om.organization_id = envelopes.organization_id
AND om.user_id = auth.uid()
AND (
om.role = 'admin'
OR (om.role = 'hr' AND envelopes.created_by = auth.uid())
)
)
);5. Clean Offboarding When Recruiters or Contractors Rotate
External recruiting agencies and contract sourcers frequently join fast-growing engineering teams for a 90-day hiring sprint. Because access depends on membership of the organization, removing that contractor's membership removes their access to the agreements they sent, while Admins continue to see every agreement in the organization, with its audit log and certificate of completion.
Frequently Asked Questions
Can two different HR members in the same organization see each other's sent offer letters?
No. Each HR sender can only see agreements where envelopes.created_by equals their own user ID (auth.uid()). Only Admins see every agreement in the organization.
Does an HR member need to configure DNS or connect their own Gmail account to send?
No. Once an Admin sets up the organization's signing domain and sending address (your own domain through Resend, or a send-only Gmail / Google Workspace mailbox in beta), HR senders send through that company identity.
What happens to signed offer letters when an HR member is removed from the workspace?
Removing the HR member removes their access to the organization and the agreements they sent. Admins continue to see every agreement in the organization, with its audit log and certificate of completion.
Do extra HR or Admin members increase our monthly subscription per seat?
See the pricing page for what each plan includes. Whatever your plan, give each person their own account with the right role instead of sharing a login.



