---
title: previousUser
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/cksyncengineaccountchangeevent/previoususer
---

# previousUser

The previous iCloud account’s record identifier.

## Declaration

```occ
@property (nonatomic, copy, readonly, nullable) CKRecordID * previousUser;
```

## Discussion

Discussion If the user just signed in, this is nil. If the user signed out or switched accounts, this is the old account’s user record ID.

## See Also

### Understanding the change

- [changeType](cloudkit/cksyncengineaccountchangeevent/changetype.md)
- [CKSyncEngineAccountChangeType](cloudkit/cksyncengineaccountchangetype.md)
- [currentUser](cloudkit/cksyncengineaccountchangeevent/currentuser.md)
