InternalCreate a new instance of the service.
Adds a group to a content restriction by Group Id. That is, grant read or update permission to the group for a piece of content.
Permissions required: Permission to edit the content.
The groupId of the group to add to the content restriction.
The ID of the content that the restriction applies to.
The operation that the restriction applies to.
Adds restrictions to a piece of content. Note, this does not change any existing restrictions on the content.
Permissions required: Permission to edit the content.
The restrictions to be added to the content.
Optionalexpand?: (A multi-value parameter indicating which properties of the content restrictions (returned in response) to expand.
restrictions.user returns the piece of content that the restrictions are
applied to. Expanded by default.restrictions.group returns the piece of content that the restrictions are
applied to. Expanded by default.content returns the piece of content that the restrictions are
applied to.The ID of the content to add restrictions to.
Returned if the requested restrictions are added.
Adds a user to a content restriction. That is, grant read or update permission to the user for a piece of content.
Permissions required: Permission to edit the content.
OptionalaccountThe account ID of the user. The accountId uniquely identifies the user across
all Atlassian products.
For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192.
The ID of the content that the restriction applies to.
Optionalkey?: stringThis parameter is no longer available and will be removed from the
documentation soon.
Use accountId instead.
See the deprecation
notice
for details.
The operation that the restriction applies to.
Optionalusername?: stringThis parameter is no longer available and will be removed from the
documentation soon.
Use accountId instead.
See the deprecation
notice
for details.
Removes all restrictions (read and update) on a piece of content.
Permissions required: Permission to edit the content.
Optionalexpand?: (A multi-value parameter indicating which properties of the content restrictions (returned in response) to expand.
restrictions.user returns the piece of content that the restrictions are
applied to. Expanded by default.restrictions.group returns the piece of content that the restrictions are
applied to. Expanded by default.content returns the piece of content that the restrictions are
applied to.The ID of the content to remove restrictions from.
Returned if the restrictions are removed.
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.
OptionalaccountThe account ID of the user. The accountId uniquely identifies the user across
all Atlassian products.
For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192.
The ID of the content that the restriction applies to.
Optionalkey?: stringThis parameter is no longer available and will be removed from the
documentation soon.
Use accountId instead.
See the deprecation
notice
for details.
The operation that is restricted.
Optionalusername?: stringThis parameter is no longer available and will be removed from the
documentation soon.
Use accountId instead.
See the deprecation
notice
for details.
Returns whether the specified content restriction applies to a group.
For example, if a page with id=123 has a read restriction for the 123456
group id,
the following request will return true:
/wiki/rest/api/content/123/restriction/byOperation/read/byGroupId/123456
Note that a response of true does not guarantee that the group 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.
The id of the group to be queried for whether the content restriction applies to it.
The ID of the content that the restriction applies to.
The operation that the restriction applies to.
Returns the restrictions on a piece of content.
Permissions required: Permission to view the content.
Optionalexpand?: (A multi-value parameter indicating which properties of the content
restrictions to expand. By default, the following objects are expanded:
restrictions.user, restrictions.group.
restrictions.user returns the piece of content that the restrictions are
applied to.restrictions.group returns the piece of content that the restrictions are
applied to.content returns the piece of content that the restrictions are
applied to.The ID of the content to be queried for its restrictions.
Optionallimit?: numberThe maximum number of users and the maximum number of groups, in the returned restrictions, to return per page. Note, this may be restricted by fixed system limits.
Optionalstart?: numberThe starting index of the users and groups in the returned restrictions.
Returned if the requested restrictions are returned.
Returns restrictions on a piece of content by operation. This method is similar to Get restrictions except that the operations are properties of the return object, rather than items in a results array.
Permissions required: Permission to view the content.
Optionalexpand?: ("content" | "restrictions.user" | "restrictions.group")[]A multi-value parameter indicating which properties of the content restrictions to expand.
restrictions.user returns the piece of content that the restrictions are
applied to. Expanded by default.restrictions.group returns the piece of content that the restrictions are
applied to. Expanded by default.content returns the piece of content that the restrictions are
applied to.The ID of the content to be queried for its restrictions.
Returned if the requested restrictions are returned.
Returns the restictions on a piece of content for a given operation (read or update).
Permissions required: Permission to view the content.
Optionalexpand?: ("content" | "restrictions.user" | "restrictions.group")[]A multi-value parameter indicating which properties of the content restrictions to expand.
restrictions.user returns the piece of content that the restrictions are
applied to. Expanded by default.restrictions.group returns the piece of content that the restrictions are
applied to. Expanded by default.content returns the piece of content that the restrictions are
applied to.The ID of the content to be queried for its restrictions.
Optionallimit?: numberThe maximum number of users and the maximum number of groups, in the returned restrictions, to return per page. Note, this may be restricted by fixed system limits.
The operation type of the restrictions to be returned.
Optionalstart?: numberThe starting index of the users and groups in the returned restrictions.
Returned if the requested restrictions are returned.
Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of content.
Permissions required: Permission to edit the content.
The id of the group to remove from the content restriction.
The ID of the content that the restriction applies to.
The operation that the restriction applies to.
Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of content.
Permissions required: Permission to edit the content.
OptionalaccountThe account ID of the user. The accountId uniquely identifies the user across
all Atlassian products.
For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192.
The ID of the content that the restriction applies to.
Optionalkey?: stringThis parameter is no longer available and will be removed from the
documentation soon.
Use accountId instead.
See the deprecation
notice
for details.
The operation that the restriction applies to.
Optionalusername?: stringThis parameter is no longer available and will be removed from the
documentation soon.
Use accountId instead.
See the deprecation
notice
for details.
Updates restrictions for a piece of content. This removes the existing restrictions and replaces them with the restrictions in the request.
Permissions required: Permission to edit the content.
The updated restrictions for the content.
Optionalexpand?: (A multi-value parameter indicating which properties of the content restrictions (returned in response) to expand.
restrictions.user returns the piece of content that the restrictions are
applied to. Expanded by default.restrictions.group returns the piece of content that the restrictions are
applied to. Expanded by default.content returns the piece of content that the restrictions are
applied to.The ID of the content to update restrictions for.
Returned if the requested restrictions are updated.
Protected Staticinitialize
See
https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions