---
title: didChangeCloudAccountsNotification
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/userdefaults/didchangecloudaccountsnotification
---

# didChangeCloudAccountsNotification

Posted when the user changes the primary iCloud account.

## Declaration

```swift
class let didChangeCloudAccountsNotification: NSNotification.Name
```

## Discussion

Discussion This notification is posted to the default notification center on the main queue.The keys and values in the local key-value store are replaced with those from the new account, regardless of the relative timestamps.

## See Also

### Deprecated

- [init(user:)](foundation/userdefaults/init(user:).md)
- [synchronize()](foundation/userdefaults/synchronize().md)
- [resetStandardUserDefaults()](foundation/userdefaults/resetstandarduserdefaults().md)
- [persistentDomainNames()](foundation/userdefaults/persistentdomainnames().md)
- [completedInitialCloudSyncNotification](foundation/userdefaults/completedinitialcloudsyncnotification.md)
- [noCloudAccountNotification](foundation/userdefaults/nocloudaccountnotification.md)
- [Language-Dependent Information Constants](foundation/language-dependent-information-constants.md)
