> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# user_joined Event

> Track when an invited user accepts and joins the account.

Fires when an invited user accepts and joins the account. Use this event to measure invite-to-join conversion rates.

## JavaScript

```javascript theme={null}
window._upstack('track', 'user_joined', {
  userId: 'usr_newmember',
  accountId: 'acct_abc123',
  userEmail: 'newmember@acme.com',
  userRole: 'member'
});
```

## Properties

| Property  | Type   | Required | Description          |
| --------- | ------ | -------- | -------------------- |
| userId    | string | Yes      | New user identifier  |
| accountId | string | Yes      | Account identifier   |
| userEmail | string | No       | User email address   |
| userRole  | string | No       | User's assigned role |

## When to Fire

* When invite is accepted
* When account access is granted
* After user completes join flow
