---
schema_version: "1"
id: 70e0ed9aaffefe41ac280f871dc05eeb76199a2300cff0b84fea85aec53f4cdf
title: IdentityModifier
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud-mobilepush/engagement_sdk/references/ios-sdk-v11/sfmc-sdk/protocols/identitymodifier.md
canonical_url: https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/identitymodifier.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: e77fc3082ba47d5d5c37acce7866bfcb3ed8924b779359e19dac76887d82e6cf
products:
  - Salesforce Engagement SDK
---
# IdentityModifier

`Protocol`

## Declaration

```swift
@objc(SFIdentityModifier)
public protocol IdentityModifier

var profileId: String { get set }

var attributes: [String : String] { get }

var partyIdentificationNumber: String? { get set }

var partyIdentificationName: String? { get set }

var partyIdentificationType: String? { get set }

func addAttribute(key: String, value: String)

func addAttributes(attributes: [String : String])

func clearAttribute(key: String)

func clearAttributes(keys: [String])

func clearAllAttributes()
```

## Cases

### `profileId`

```swift
var profileId: String { get set }
```

---

### `attributes`

```swift
var attributes: [String : String] { get }
```

---

### `partyIdentificationNumber`

```swift
var partyIdentificationNumber: String? { get set }
```

---

### `partyIdentificationName`

```swift
var partyIdentificationName: String? { get set }
```

---

### `partyIdentificationType`

```swift
var partyIdentificationType: String? { get set }
```

---

### `addAttribute(key:value:)`

```swift
func addAttribute(key: String, value: String)
```

---

### `addAttributes(attributes:)`

```swift
func addAttributes(attributes: [String : String])
```

---

### `clearAttribute(key:)`

```swift
func clearAttribute(key: String)
```

---

### `clearAttributes(keys:)`

```swift
func clearAttributes(keys: [String])
```

---

### `clearAllAttributes()`

```swift
func clearAllAttributes()
```

---
