---
title: "cloudIdentifierMappingsForLocalIdentifiers:"
framework: photos
role: symbol
role_heading: Instance Method
path: "photos/phphotolibrary/cloudidentifiermappingsforlocalidentifiers:"
---

# cloudIdentifierMappingsForLocalIdentifiers:

Retrieves the cloud identifier mappings for the list of local identifiers.

## Declaration

```occ
- (NSDictionary<NSString *,PHCloudIdentifierMapping *> *) cloudIdentifierMappingsForLocalIdentifiers:(NSArray<NSString *> *) localIdentifiers;
```

## Parameters

- `localIdentifiers`: A list of local identifiers for which to retrieve cloud identifiers mappings.

## Return Value

Return Value A dictionary that contains a map of local identifiers to their corresponding cloud mappings.

## Discussion

Discussion Retrieving cloud identifiers can be an expensive operation, so perform this lookup sparingly. Instead, work with local identifiers and perform mapping work at load and save points. Then store and share the cloud identifiers to make them available on other devices. If the attempt to look up a cloud identifier fails, the error parameter indicates the reason.

## See Also

### Converting Between Local and iCloud Identifiers

- [localIdentifierMappingsForCloudIdentifiers:](photos/phphotolibrary/localidentifiermappingsforcloudidentifiers:.md)
- [PHCloudIdentifier](photos/phcloudidentifier.md)
- [PHCloudIdentifierMapping](photos/phcloudidentifiermapping.md)
- [PHLocalIdentifierMapping](photos/phlocalidentifiermapping.md)
- [cloudIdentifiers(forLocalIdentifiers:)](photos/phphotolibrary/cloudidentifiers(forlocalidentifiers:).md)
- [localIdentifiers(for:)](photos/phphotolibrary/localidentifiers(for:).md)
- [PHLocalIdentifierNotFound](photos/phlocalidentifiernotfound.md)
