<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INPerson/init(personHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isMe:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INPerson(im)initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isMe:"
  },
  "title" : "init(personHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isMe:)"
}
-->

# init(personHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isMe:)

Creates a person with information that indicates whether the person is the user of the device.

```
init(personHandle: INPersonHandle, nameComponents: PersonNameComponents?, displayName: String?, image: INImage?, contactIdentifier: String?, customIdentifier: String?, isMe: Bool)
```

## Parameters

`personHandle`

A string that contains information your app uses to identify the user. You can create a person handle from an email address, phone number, or account name associated with the user.

`nameComponents`

The name of the user, specified as a set of name components.

`displayName`

The string you display for the user’s name.

`image`

An image of the person.

`contactIdentifier`

The identifier associated with the user’s <doc://com.apple.documentation/documentation/Contacts/CNContact> object. Specify a value for this parameter when the user has a corresponding entry in the Contacts database.

`customIdentifier`

A custom string that you use to identify people in your app.

`isMe`

A Boolean value that indicates whether the person is the current device user.

## Return Value

An initialized person object or `nil` if initialization fails.

## Discussion

It’s important to set `isMe` when using <doc://com.apple.documentation/documentation/SiriKit/messaging> intents. For example, if the message sender for an outgoing message is also the user of the device, set `isMe` to <doc://com.apple.documentation/documentation/Swift/true>. Similarly, when creating the recipient array for an incoming message—which includes the current user of the device—set `isMe` to <doc://com.apple.documentation/documentation/Swift/true> for the person in the recipient list that is the current device user, and set `isMe` to <doc://com.apple.documentation/documentation/Swift/false> for all other recipients.

Use this method when creating person objects you plan to return as part of a response to Siri. Always specify as much information as possible about the user. This method makes copies of the `personHandle`, `nameComponents`, `displayName`, `image`, `contactIdentifier`, and `customIdentifier` parameters instead of keeping the originals.

---

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)