# getUserAttributes()

Retrieves the user attributes, set using setUserAttributes.

> **Warning**

**Deprecated SDK**We strongly recommend migrating to the new [Superwall Expo SDK](/docs/expo), see our [migration guide](/docs/expo/guides/migrating-react-native) for details.



Purpose [#purpose]

Retrieves the user attributes that were previously set using [`setUserAttributes()`](/docs/react-native/sdk-reference/setUserAttributes).

Signature [#signature]

```typescript
async getUserAttributes(): Promise<UserAttributes>
```

Parameters [#parameters]

This method takes no parameters.

Returns / State [#returns--state]

Returns a Promise that resolves with an object representing the user's attributes. The object has string keys and values can be any JSON-encodable value, URLs, or Dates.

Usage [#usage]

```typescript
const attributes = await Superwall.shared.getUserAttributes()
console.log("User attributes:", attributes)
// Example output: { name: "John", email: "john@example.com", plan: "premium" }
```

Related [#related]

* [`setUserAttributes()`](/docs/react-native/sdk-reference/setUserAttributes) - Set user attributes
* [`identify()`](/docs/react-native/sdk-reference/identify) - Identify a user