---
title: "Get content restriction status for user"
method: GET
path: "/wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user"
tags: ["Content restrictions"]
---

# Get content restriction status for user

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

Returns whether the specified content restriction applies to a user.
For example, if a page with `id=123` has a `read` restriction for a user with an account ID of
`384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`, the following request will return `true`:

`/wiki/rest/api/content/123/restriction/byOperation/read/user?accountId=384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`

Note that a response of `true` does not guarantee that the user can view the page, as it does not account for
account-inherited restrictions, space permissions, or even product access. For more
information, see [Confluence permissions](https://confluence.atlassian.com/x/_AozKw).

**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
Permission to view the content.

## Path parameters

- `id` string, required
- `operationKey` string, required

## Query parameters

- `key` string
- `username` string
- `accountId` string

## Response `200`

Return true if the content restriction applies to the user. The response
body will be empty.

## Other responses

- `404` — Returned if; - There is no content with the given ID. - The calling user does not have permission to view the content. - An invalid operation or user is specified.

---

[API](https://skmtc.dev/atlassian/apis/the-confluence-cloud-rest-api.md) · [All operations](https://skmtc.dev/atlassian/apis/the-confluence-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/atlassian/the-confluence-cloud-rest-api/revisions/70088490f406/schema)
