---
title: "List user share permissions for a memory block."
method: GET
path: "/memory_blocks/{memory_block_id}/permissions"
tags: ["Memory Blocks"]
---

# List user share permissions for a memory block.

`GET /memory_blocks/{memory_block_id}/permissions`

## Request

- Base URL: `https://h2ogpte.genai.h2o.ai/api/v1`
- URL: `https://h2ogpte.genai.h2o.ai/api/v1/memory_blocks/{memory_block_id}/permissions`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/h2o/apis/h2ogpte-rest-api/docs/memory_blocks/:memory_block_id/permissions/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the list of users with explicit (direct) share grants on the memory block. Does not include cascade access derived from collection sharing.

## Path parameters

- `memory_block_id` string, required

## Response `200`

Successful operation

- SharePermission[]
  - `username` string, required
  - `permissions` string[]

## Other responses

- `401`: Unauthorized - Invalid or missing API key
- `403`: Forbidden
- `404`: Not found
- `default`: Unexpected error

---

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