getContentRestrictionStatusForGroup method

  1. @deprecated
Future<void> getContentRestrictionStatusForGroup({
  1. required String id,
  2. required String operationKey,
  3. required String groupName,
})

Deprecated, use Get content restriction status for group via groupId. Returns whether the specified content restriction applies to a group. For example, if a page with id=123 has a read restriction for the admins group, the following request will return true:

/wiki/rest/api/content/123/restriction/byOperation/read/group/admins

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.

Implementation

@deprecated
Future<void> getContentRestrictionStatusForGroup(
    {required String id,
    required String operationKey,
    required String groupName}) async {
  await _client.send(
    'get',
    'wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}',
    pathParameters: {
      'id': id,
      'operationKey': operationKey,
      'groupName': groupName,
    },
  );
}