> For the complete documentation index, see [llms.txt](https://dev.vulos.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.vulos.io/reference/identity-javascript-sdk/the-base-package/profile/userreference.md).

# UserReference

## Members

### `id : string`

The ID of the user that this object references.

### `profileApi :` [`ProfileApi`](/reference/identity-javascript-sdk/the-base-package/profile/profileapi.md)

The Profile API instance that can be used for interaction.

## Methods

### `constructor(id, profileApi)`

Create an instance of this class.

* `id` must be a user ID.
* `profileApi` must be an instance of [`ProfileApi`](/reference/identity-javascript-sdk/the-base-package/profile/profileapi.md).

### `async profile()`

Get this user's public profile.

This function returns an object that implements the [`ProfileInfo`](/reference/identity-javascript-sdk/the-base-package/profile/profileapi.md#profileinfo) interface.

```javascript
const profile = await userRef.profile()
```
