> ## 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_removed Event

> Track when a user is removed from an account.

Fires when a user is removed from an account. Use this event to track team changes and understand user churn at the account level.

## JavaScript

```javascript theme={null}
window._upstack('track', 'user_removed', {
  userId: 'usr_xyz789',
  accountId: 'acct_abc123',
  userEmail: 'removed@acme.com',
  removedByUserId: 'usr_admin123',
  removalReason: 'left_company'
});
```

## Properties

| Property        | Type   | Required | Description                                                                |
| --------------- | ------ | -------- | -------------------------------------------------------------------------- |
| userId          | string | Yes      | Removed user identifier                                                    |
| accountId       | string | Yes      | Account identifier                                                         |
| userEmail       | string | No       | Removed user's email address                                               |
| removedByUserId | string | No       | Admin who removed the user                                                 |
| removalReason   | string | No       | Reason for removal (`left_company`, `role_change`, `security`, `inactive`) |

## When to Fire

* When admin removes user from team
* When user access is revoked
* When user is deactivated from account
