<!--
{
  "availability" : [

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

# nameComponents

An object that contains the user’s name. Use the `familyName` key to get the last name, and the `givenName` key to get the first name.

```
attribute CloudKit.NameComponents nameComponents;
```

---

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)