# How to give each user their own templates (multi-tenancy)

> One switch and a userId — every user gets a private library of templates, images, fonts and colors

- **URL**: https://orshot.com/help/embed-multi-tenancy

---

By default, everyone using your embed shares the workspace's templates. **Per-User Data & Templates** isolates them: each user gets their own templates, images, videos, fonts and colors — User A can never see or modify User B's work.

## 1. Turn it on

In **Orshot Embed** settings, expand **Users & Data** and enable **Per-User Data & Templates**:

![The Per-User Data & Templates switch with the user counter](https://orshot.com/help/embed/users-1-per-user-data.webp)

## 2. Pass a userId

Add your app's user identifier to the embed URL — users are created automatically on first visit:```html
<iframe src="https://orshot.com/embeds/YOUR_EMBED_ID?userId=user_123"></iframe>
```Optional extras: `userName`, `userEmail`, and `metadata` (URL-encoded JSON for plan, company, role…).

## What your users see

Two template sections inside the editor: **My Templates** (theirs alone) and **Workspace Templates** (the ones you share). Pair this with
[override protection](https://orshot.com/help/embed-protect-your-templates) so your originals stay untouched.

## User limits

Each plan includes a maximum number of embed users (the counter shows yours, e.g. `0 / 800`). At the limit, new users see a "User Limit Reached" message; existing users keep working.

## Fetch a user's templates via API```bash
curl "https://api.orshot.com/v1/studio/templates/all?embedId=YOUR_EMBED_ID&embedUserId=user_123" \
  -H "Authorization: Bearer YOUR_API_KEY"
```## Related