SpinTheMic
Pro

Interview practice question

Tenant admin can access other tenants

Backend Engineering · Auth and Security · Intermediate

In your B2B SaaS, a tenant admin found they could manage users in other tenants by changing a tenant ID in the URL. How do you fix this?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Tenant from token, not URL.
  • Verify resource belongs to user's tenant.
  • Central tenant scoping in data layer.
  • Row-level security.
  • Regression tests.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics