---
title: "blockRequesters(_:)"
framework: cloudkit
role: symbol
role_heading: Instance Method
path: "cloudkit/ckshare/blockrequesters(_:)"
---

# blockRequesters(_:)

Blocks specified users from requesting access to this share.

## Declaration

```swift
func blockRequesters(_ requesters: [CKShare.AccessRequester])
```

## Parameters

- `requesters`: An array of doc://com.apple.cloudkit/documentation/CloudKit/CKShare/AccessRequester objects to block.

## Discussion

Discussion Blocking prevents users from submitting future access requests and removes existing participants from the share. Blocked requesters appear in the blockedIdentities array. To persist this change, save the share to the server after calling this method. Only the share owner or an administrator can invoke this method. Attempts by other participants result in an exception.
