getIndividualGroupRestrictionStatusByGroupId method

Future<void> getIndividualGroupRestrictionStatusByGroupId({
  1. required String id,
  2. required String operationKey,
  3. required String 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 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.

Implementation

Future<void> getIndividualGroupRestrictionStatusByGroupId(
    {required String id,
    required String operationKey,
    required String groupId}) async {
  await _client.send(
    'get',
    'wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}',
    pathParameters: {
      'id': id,
      'operationKey': operationKey,
      'groupId': groupId,
    },
  );
}