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.
Permissions required: Permission to view the content.
Servers
- https://your-domain.atlassian.net
Path parameters
Name | Type | Required | Description |
---|---|---|---|
id |
String | Yes |
The ID of the content that the restriction applies to. |
operationKey |
String | Yes |
The operation that is restricted. |
Query parameters
Name | Type | Required | Description |
---|---|---|---|
username |
String | No |
This parameter is no longer available and will be removed from the documentation soon.
Use |
accountId |
String | No |
The account ID of the user. The accountId uniquely identifies the user across all Atlassian products.
For example, |
key |
String | No |
This parameter is no longer available and will be removed from the documentation soon.
Use |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.