Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
docs: upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
planetscale-actions-bot committed Sep 20, 2024
1 parent a278105 commit 3070ea2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/concepts/service-tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,19 @@ For a full list of organization access permissions, see the [API documentation f

### Add database permissions

In order to perform operations specific to a database, permissions need to be assigned per-database. To do this, locate the section titled **Database access** and click **"Add database access"** to open the **Database access permissions** modal.
In order to perform operations specific to a database, permissions can be assigned per-database. To do this, locate the section titled **Database access** and click **"Add database access"** to open the **Database access permissions** modal.

Select the database you want to grant access to and check the box next to each permission option you need to grant. Once you are done, click **"Save permissions"**.

For a full list of database access permissions, see the [API documentation for service tokens](https://api-docs.planetscale.com/reference/service-tokens#database-access-permissions).

![The Database access permissions modal.](/assets/docs/concepts/service-tokens/db-access-permissions-2.png)

### Add permissions for all databases

Organization admins can grant database permissions to all current and future databases. This is available in the **Permissions for all databases** section.
Any permission added to all databases will not be able to be disabled on an individual basis.

## Service tokens and deploy requests approvals

When a database requires administrator approval for deploy requests (located in your database's **Settings** page), a service token cannot approve a deploy request created by the same service token. Also, users can't approve a deploy request created by a service token that they created.
Expand Down

0 comments on commit 3070ea2

Please sign in to comment.