<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKShare/addParticipant(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CKShare(im)addParticipant:"
  },
  "title" : "addParticipant(_:)"
}
-->

# addParticipant(_:)

Adds a participant to the share.

```
func addParticipant(_ participant: CKShare.Participant)
```

## Parameters

`participant`

The participant to add to the share.

## Discussion

If a participant with a matching [`userIdentity`](/documentation/CloudKit/CKShare/Participant/userIdentity) already exists in the share, the system updates the existing participant’s properties and doesn’t add a new participant.

To modify the list of participants, a share’s [`publicPermission`](/documentation/CloudKit/CKShare/publicPermission) must be [`CKShare.ParticipantPermission.none`](/documentation/CloudKit/CKShare/ParticipantPermission/none). You can’t mix and match public and private users in the same share. You can only add certain participant types with this API. See [`CKShare.Participant`](/documentation/CloudKit/CKShare/Participant) for more information.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)