---
title: "Grant permissions on a report to users or teams"
method: POST
path: "/v2/reports/{reportId}/grants"
tags: ["Reports"]
---

# Grant permissions on a report to users or teams

`POST /v2/reports/{reportId}/grants`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/reports/{reportId}/grants`
- Auth: HTTP bearer

You can use this endpoint to grant specific document permissions on a specific report to users or teams.

   ### Usage notes

   - Ensure the **reportId** in the path is valid and that the user has rights to modify its permissions. Retrieve the **reportId** by calling the [/v2/reports](https://help.sigmacomputing.com/reference/list-reports) endpoint.
   - Do not set both **memberId** and **teamId** in the same **grantee** object. Instead, choose one based on the target of the grant.

     - Retrieve the **memberId** by calling the [/v2/members](https://help.sigmacomputing.com/reference/list-members) endpoint.
     - Retrieve the **teamId** by calling the [/v2/teams](https://help.sigmacomputing.com/reference/list-teams) endpoint.
   - Grant permissions on a specific version tag of a report by specifying the **tagId**. Retrieve the **tagId** by calling the [/v2/tags](https://help.sigmacomputing.com/reference/list-version-tag) endpoint and using the `versionTagId` in the response.

   ### Usage scenarios

   - **Team collaboration**: Granting edit permissions to a team for collaborative work on a project.
   - **External access sharing**: Providing view access to an external consultant.

   ### Best practices

   - Validate user and team IDs before submitting them in a request to avoid errors.
   - Use the **tagId** to help manage and revoke grants systematically as project requirements change.

## Path parameters

- `reportId` string, required

## Request body

- object
  - `grants` V2ReportsReportIdGrantsPostRequestBodyContentApplicationJsonSchemaGrantsItems[], required
    - `grantee` union, required
      - V2ReportsReportIdGrantsPostRequestBodyContentApplicationJsonSchemaGrantsItemsGrantee0: The UUID of the member receiving the grant
        - `memberId` string, required
      - V2ReportsReportIdGrantsPostRequestBodyContentApplicationJsonSchemaGrantsItemsGrantee1: The UUID of the team receiving the grant
        - `teamId` string, required
    - `permission` 'view' | 'edit', required: Permission to grant for access to the report.
    - `tagId` string

## Response `200`

The response body.

- ReportsCreateReportGrantResponse200

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
