---
schema_version: "1"
id: 6255b6a163daabc3a805ae30cfa6695b9c7880206c721b327f1b3816f4674a4b
title: Attributes.Retrieve
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_subscriberAttributesRetrieve.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_subscriberAttributesRetrieve.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: a09d707f39ec99077275f8ec093ae3b54974888d72422f6afbd4723d101e3d29
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Attributes.Retrieve

Returns an array of attributes that are associated with a subscriber.

## Syntax

`Attributes.Retrieve()`

## Example

To use this function, first initialize the subscriber by using the `Subscriber.Init()` function.

```
var subObj = Subscriber.Init("SubKey");
var attributes = subObj.Attributes.Retrieve();
```
