---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://appmetrica.yandex.com/docs/en/sdk/ios/analytics/objectivec/AMAUserProfile.md
  - https://appmetrica.yandex.com/docs/ru/sdk/ios/analytics/objectivec/AMAUserProfile.md
---
> **Documentation Index:** Fetch the complete configuration index at https://appmetrica.yandex.com/docs/en/llms.txt

# AMAUserProfile class

Immutable class for storing the user profile.

Use the [AMAMutableUserProfile](https://appmetrica.yandex.com/docs/en/sdk/ios/analytics/objectivec/AMAMutableUserProfile.md) class to change the user profile.

A user profile is a set of user attributes. User profile details are displayed in the AppMetrica report on user profiles.

The instance of the `AMAUserProfile` class should be passed to the AppMetrica server using the [reportUserProfile](https://appmetrica.yandex.com/docs/en/sdk/ios/analytics/objectivec/AMAAppMetrica.md#method_reportUserProfile) method of the [AMAAppMetrica](https://appmetrica.yandex.com/docs/en/sdk/ios/analytics/objectivec/AMAAppMetrica.md) class. Use methods of the [AMAProfileAttribute](https://appmetrica.yandex.com/docs/en/sdk/ios/analytics/objectivec/AMAProfileAttribute.md) class to create user attributes.

## Instance methods {#instance_summary}

#|
|| -[initWithUpdates:](#method_initWithUpdates) | Initializes the user profile with the specified set of updates. ||
|#

## Properties {#property_summary}

#|
|| [updates](#property_updates) | Array that contains attribute updates. ||
|#

## Method descriptions {#method_detail}

### -initWithUpdates: {#method_initWithUpdates}

```objectivec translate=no
- (instancetype)initWithUpdates:(NSArray<AMAUserProfileUpdate *> *)updates
```

Initializes the user profile with the specified set of updates.

**Parameters:**

#|
|| `updates` | Array that contains attribute updates. ||
|#

**Returns:**

The `AMAUserProfile` class instance.

## Property descriptions {#property_detail}

### updates {#property_updates}

`(nonatomic, copy, readonly) NSArray<AMAUserProfileUpdate *> *updates`

Array that contains attribute updates.
