---
schema_version: "1"
id: 8dc0e8d66f793be84c13bd0e5ae0983de6ce1ca93b733801f7d28892e3ee7548
title: getAttributes
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud-mobilepush/engagement_sdk/references/cordova/getAttributes.md
canonical_url: https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/getAttributes.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 609be27225ce0a4c1f6cae667c49d8dcf7e8bbc0e1bd034b86c137a44a7620d5
products:
  - Salesforce Engagement SDK
---
# getAttributes

Returns the maps of attributes set in the registration.

## Syntax

`MCCordovaPlugin.getAttributes(successCallback, [errorCallback])`

## Kind

Static method of `MCCordovaPlugin`.

## Parameters

| Parameter                    | Type                      | Description                                              |
| ---------------------------- | ------------------------- | -------------------------------------------------------- |
| `successCallback`            | `function`                |                                                          |
| `successCallback.attributes` | `Object.<string, string>` | The key-value map of attributes set in the registration. |
| `errorCallback`              | `function`                |                                                          |

## See Also

- [Android SDK Reference](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/8.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.registration/-registration-manager/get-attributes.html)
- _SDK Reference for iOS_: [attributes() Method](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/ios-sdk-v11/mce-sdk/classes/marketingcloudsdk.md#attributes)
