> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://partner.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://partner.ninjatrader.com/_mcp/server.

# User Actions

> Find users, view user details, and generate user session reports through the admin dashboard interface.

Find and manage users through the admin dashboard interface using the Query Builder and Reports functionality.

## Finding Users with Query Builder

Use the Query Builder to search and filter users in your organization:

1. **Navigate to Query Builder** from the dashboard navigation
2. **Select "users"** from the Repository Name dropdown
3. **Configure your query**:
   * Use the **Select** field to choose which user fields to display
   * Use the **Where** clause to filter users (e.g., `status == "active"`)
   * Set **Limit** to control the number of results
4. **Click "Run Query"** to execute your search

### Common User Query Examples

**Where Clause**: `status == "active"`

This query finds all users with an active status in your organization.

**Where Clause**: `createdAt \>= "2024-01-01T00:00:00.000Z"`

This query finds users created after January 1, 2024.

**Where Clause**: `organizationId == 12345`

This query finds all users belonging to a specific organization.

**Where Clause**: `email like "(?iu).*@yourcompany.com"`

This query finds users with email addresses from a specific domain.

## Viewing User Details

From the Query Builder results, you can view detailed information about individual users:

1. Select a user from the query results
2. Click the **eye icon** to view comprehensive user information
3. Review user profile, permissions, and account details

1) Select a user from the query results
2) Click the **layout button** to open the user's dashboard view
3) View user-specific data and related entities

1. Select a user from the query results
2. Click **"ACTIONS"** to see available operations
3. Choose from available actions based on your permissions

## User Session Reports

Generate reports to analyze user login activity and session data:

### Creating User Session Reports

1. Navigate to the **Reports** section
2. Select **User Sessions** report type
3. Configure report parameters:
   * **Date**: The time frame to pull data from (custom ranges supported)
   * **User**: The specific user to pull session data for (optional)
4. Click **"Generate Report"** to view results

User session reports contain:

* **Session start and stop times**: Audit login durations
* **Device ID and IP address**: Identify unusual access patterns
* **App Name**: See which application was used (e.g., `tradovate_trader(web)`)
* **Login frequency**: Track user access patterns

### Using Session Data for Security

User session reports are particularly useful for:

* **Account security investigations**: When users claim unauthorized account access
* **Device verification**: Compare Device IDs and IP addresses to identify unusual access
* **Access pattern analysis**: Review login times and frequency for security monitoring
* **Application usage tracking**: See which applications users are accessing

**Security Tip**: Compare the listed Device IDs and IP Addresses to see if there is an outlying device or an unusual IP address that might indicate unauthorized access.

***