---
title: How to add users to a Serverless SQL Database
description: Learn how to add users to your Scaleway serverless SQL database.
tags: sql-databases serverless database iam postgresql
dates:
  validation: 2025-09-17
  posted: 2023-08-11
---
import Requirements from '@macros/iam/requirements.mdx'


Users and applications can connect to a database and access its data. Each one can have a different set of customizable permissions.

<Requirements />

- A Scaleway account logged into the [console](https://console.scaleway.com)
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
- [Created a Serverless SQL Database](/serverless-sql-databases/how-to/create-a-database/)
- [Created a policy to manage users' permissions](/serverless-sql-databases/how-to/manage-permissions/)
- [Created a Member in your Organization](/iam/how-to/manage-members/) or [created an application](/iam/how-to/create-application/) in IAM

## How to add a user to a Serverless SQL Database

1. Click **IAM & API keys** on the top-right drop-down menu of the Scaleway console. The **Users** tab of the [Identity and Access Management dashboard](https://console.scaleway.com/iam/users) displays.

2. Click the **email** of the user you want to give database access to.

3. Open the **Groups & Policies** tab.

4. Click **+ Attach a policy**. The policy attachment wizard displays.

5. Choose **Select an unassigned policy**, then, select the previously created policy from the drop-down menu.

    <Message type="note">
        You can also [create a new policy](/serverless-sql-databases/how-to/manage-permissions/) or duplicate an existing one to manage the permissions of a user.
    </Message>

6. Click **Validate**.

## How to add an application to a Serverless SQL Database

1. Click **IAM & API keys** on the top-right drop-down menu of the Scaleway console. The **Users** tab of the [Identity and Access Management dashboard](https://console.scaleway.com/iam/users) displays.

2. Open the **Applications** tab.

3. Click the **name** of the application you want to give database access to.

4. Click the **Groups & Policies** tab.

5. Click **+ Attach a policy**. The policy attachment wizard displays.

6. Choose **Select an unassigned policy**, then, select the previously created policy from the drop-down menu.

    <Message type="note">
        You can also [create a new policy](/serverless-sql-databases/how-to/manage-permissions/) or duplicate an existing one to manage the permissions of an application.
    </Message>

7. Click **Validate**.


