<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FileProvider",
  "identifier" : "/documentation/FileProvider/NSFileProviderManager/claimKnownFolders(_:localizedReason:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "File Provider",
      "FileProvider"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFileProviderManager(im)claimKnownFolders:localizedReason:completionHandler:"
  },
  "title" : "claimKnownFolders(_:localizedReason:completionHandler:)"
}
-->

# claimKnownFolders(_:localizedReason:completionHandler:)

Asks the domain to sync the specified known folders.

```
func claimKnownFolders(_ knownFolders: NSFileProviderKnownFolderLocations, localizedReason: String, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

## Discussion

Use this method to claim a set of known folders according to the information in the `knownFolders` parameter.
The system only enables sync for these folders in the domain if the set of locations is valid and if the user agrees.

---

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)