# Profiles

> A profile per user, created on sign-up from auth metadata with a unique username, an email mirror, column-level update grants and a guard on columns the service owns.

- Category: Tenancy & accounts
- Module: `profiles`
- Modes: `managed`, `custom`
- Docs: https://bettersupabase.com/docs/blocks/profiles
- Page: https://bettersupabase.com/blocks/profiles

## Install

```bash
npx better-supabase add profiles
```

## Configure

Add the block to `better-supabase.config.ts`:

```ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  blocks: {
    // Modes: "managed", "custom". The default is "managed".
    profiles: { mode: "managed" },
  },
});
```

## Client

The block has no React entry yet. Its server-side TypeScript is in `better-supabase/blocks/profiles`.

## Related blocks

Works with: [memberships](https://bettersupabase.com/blocks/memberships.md), [teams](https://bettersupabase.com/blocks/teams.md)

## Recipes

- [Profile form](https://bettersupabase.com/recipes/profile-form.md): A form that updates the caller's display name through a server action and shows field errors.
