---
title: "Grant a user access to a folder."
method: POST
path: "/v1/folders/{id}/acl"
tags: ["folders"]
---

# Grant a user access to a folder.

`POST /v1/folders/{id}/acl`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/v1/folders/{id}/acl`
- Auth: one of:
  - API key in cookie `dvt_session`
  - HTTP bearer

Upserts a direct user ACL grant on the folder (DVT-1421). If the user already has a
grant, the role is updated. Only user principals are supported; the `principalId` must be
an active member of the organization. Roles: `viewer`, `editor`, or `admin` (`owner` is
assigned at creation and cannot be granted via ACL). Requires share:manage on the
folder (owner / org admin / acl-admin). The grant is inherited by every dashboard
in the folder's subtree at read time — no materialized rows are written on grant.
In the Snowflake native app, ownership and acl-admin grants are ignored for callers whose live tier is viewer.

## Request body

- GrantFolderRequest: Request body for POST /v1/folders/{id}/acl.
  - `principalType` 'user', required: Only "user" is supported.
  - `principalId` string, uuid, required: The user to grant access to. Must be an active member of the org.
  - `role` 'viewer' | 'editor' | 'admin', required: The role to grant. "owner" cannot be granted via ACL.

## Response `201`

Grant created or updated.

- object
  - `data` FolderGrant, required: A direct user ACL grant on a folder (DVT-1421). Granting a folder shares every dashboard inside it (and its subtree) at read time — dashboards resolve the highest-privilege grant across their own direct/group grants and any ancestor folder's grants.
    - `userId` string, uuid, required: The grantee's user ID.
    - `email` string, email: The grantee's email address.
    - `displayName` string: The grantee's display name.
    - `role` 'viewer' | 'editor' | 'admin', required: The granted role.
  - `meta` Meta, required: Response metadata.
    - `requestId` string, required: Correlates with the X-Request-Id header.
    - `total` integer: Item count, present on collection responses.
    - `nextCursor` string, nullable: Opaque keyset-pagination cursor, present on paginated responses (e.g. GET /v1/dashboards) when more rows exist beyond this page. Pass it back as the `cursor` query param to fetch the next page; absent or null on the last page.
    - `roleResolveDegraded` boolean: Snowflake mode only (DVT-2260), on GET /v1/dashboards: present and true when the caller's live Snowflake role resolution failed or was unavailable — role-shared dashboards may be missing from this page. Omitted (not merely false) whenever resolution succeeded or the role-share arm does not apply (off snowflake mode, an org admin/owner, or off the ingress listener).

## Other responses

- `400`: Malformed request.
- `401`: Missing, invalid, or expired session.
- `403`: The caller's role does not permit this action.
- `404`: Resource does not exist.

---

[API](https://skmtc.dev/dvt/apis/dvt-rest-api.md) · [All operations](https://skmtc.dev/dvt/apis/dvt-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dvt/apis/dvt-rest-api/revisions/00016f504165?raw)
