---
ai:
  exclude: true
search:
  tags:
    - Content Restrictions
    - GET
seo:
  description: >-
    Returns info about all… Reference for the GET
    /rest/api/content/{id}/restriction/byOperation/{operationKey} endpoint in
    the Confluence Data Center API.
sidebar:
  label: Get all restrictions for given operation
  badge: GET
title: Get all restrictions for given operation
type: openapi-operation
---
Returns info about all restrictions of given operation.

`GET /rest/api/content/{id}/restriction/byOperation/{operationKey}`

**Responses**

- `200` — Returns a JSON representation of the restrictions of given operation.

Response example, 200:

```json
{
  "operation": "read",
  "restrictions": {
    "user": {
      "results": [],
      "start": 0,
      "limit": 200,
      "size": 0
    },
    "group": {
      "results": [],
      "start": 0,
      "limit": 200,
      "size": 0
    }
  },
  "get_links": {
    "self": "https://instenv-320828-cq6e.instenv.internal.atlassian.com/rest/api/content/2326529/restriction/byOperation/read",
    "base": "https://instenv-320828-cq6e.instenv.internal.atlassian.com",
    "context": "string"
  },
  "get_expandable": {
    "content": "/rest/api/content/2326529"
  }
}
```
