---
title: nameComponents
framework: CloudKit JS
role: symbol
role_heading: Instance Property
platforms: [cloudkit js 1.0+]
path: cloudkitjs/cloudkit.useridentity/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.

## Declaration

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