Application design
Testing access in a multi-tenant app
Verify that accounts can access only the data and actions their role allows.
Design the workflow
Write an access matrix for each endpoint and role. Apply server-side workspace membership checks, including on exports and background tasks.
Test across workspaces
Create two workspaces and try using an identifier from one while signed into the other. Repeat for users whose membership was removed and for links opened after an invitation expires.