<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "CloudKitJS",
  "identifier" : "/documentation/CloudKitJS/CloudKit.UserIdentity",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "CloudKit JS"
    ],
    "preciseIdentifier" : "struct/CloudKit.UserIdentity"
  },
  "title" : "CloudKit.UserIdentity"
}
-->

# CloudKit.UserIdentity

Information to identify a user.

```
dictionary CloudKit.UserIdentity {
	CloudKit.NameComponents nameComponents;
	String userRecordName;
	CloudKit.UserLookupInfo lookupInfo;
};
```

## Overview

If a user is discoverable, the [`CloudKit.UserIdentity`](/documentation/CloudKitJS/CloudKit.UserIdentity) dictionary contains a `nameComponents` key that you can use to get the user’s first and last name; otherwise, to protect the users’s privacy, the [`CloudKit.UserIdentity`](/documentation/CloudKitJS/CloudKit.UserIdentity) dictionary contains only the `lookupInfo` key.

---

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)