# UserReference

## Members

### `id : string`

The ID of the user that this object references.

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

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`](https://dev.vulos.io/reference/identity-javascript-sdk/the-base-package/profile/profileapi).

### `async profile()`

Get this user's public profile.

This function returns an object that implements the [`ProfileInfo`](https://dev.vulos.io/reference/identity-javascript-sdk/the-base-package/profileapi#profileinfo) interface.

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