<!--
{
  "availability" : [
    "macOS: 10.13.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHPhotoLibrary/cloudIdentifiers(forLocalIdentifiers:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHPhotoLibrary(im)cloudIdentifiersForLocalIdentifiers:"
  },
  "title" : "cloudIdentifiers(forLocalIdentifiers:)"
}
-->

# cloudIdentifiers(forLocalIdentifiers:)

Retrieves the equivalent iCloud identifiers for the list of local identifiers.

```
func cloudIdentifiers(forLocalIdentifiers localIdentifiers: [String]) -> [PHCloudIdentifier]
```

## Parameters

`localIdentifiers`

The local identifiers for which to retrieve iCloud identifier equivalents.

## Return Value

The array of corresponding iCloud identifiers.

## Discussion

Retrieving iCloud identifiers can be an expensive operation, so you should perform this lookup sparingly. Instead, work with local identifiers and retrieve their iCloud identifier equivalents only once: either after loading from or before saving to persistent storage.

---

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)