5 min readUpdated Mar 2, 2026

Users Management

Purpose

The Users Management component of the Vantage analytics and data platform is designed to serve as the central interface for administrators to manage user accounts. This includes functionalities for viewing, adding, editing, and deleting users, as well as managing user-specific meta-data such as roles and associated clients. The component simplifies user management by offering intuitive controls and real-time data fetching to keep the user interface up-to-date.

Settings

The Users Management component does not expose traditional settings in the form of configurable inputs, but rather features various internal states and functions that dictate how the component behaves. Below is a detailed analysis of these state variables and their effects:

1. users

2. clients

3. roles

4. isLoading

5. searchQuery

6. isModalOpen

7. editingUser

8. activeMenu

Deletion Impact Modal State Variables:

  1. deleteTarget

    • Input Type: Object or null
    • Purpose: References the user selected for deletion.
    • Effect of Change: Allows for confirmation and displays relevant information before proceeding with deletion.
    • Default Value: null
  2. deleteImpact

    • Input Type: Object or null
    • Purpose: Holds data related to the potential impacts of deleting a user (like data ownership or responsibilities).
    • Effect of Change: Displays critical information about the deletion consequences.
    • Default Value: null
  3. deleteLoading

    • Input Type: Boolean
    • Purpose: Indicates if the application is currently fetching deletion impact data.
    • Effect of Change: Shows/hides loading indicators in the modal.
    • Default Value: false
  4. deleteConfirming

    • Input Type: Boolean
    • Purpose: Indicates if the system is in the process of confirming a delete operation.
    • Effect of Change: Can enable or disable UI elements while a deletion is processed.
    • Default Value: false

How It Works

  1. Data Loading: Upon mounting, the component fetches users, clients, and roles data asynchronously from the API. State variables are set based on the responses.
  2. User Interaction: Users can be filtered using the search functionality. Clicking on a user card allows for editing, while buttons are available for adding or deleting users.
  3. Modals: Two modals are employed:
    • The UserEditorModal for editing and creating users.
    • A confirmation modal for understanding the impact before a user deletion.
  4. State Management: state management is heavily utilized to manage the various aspects of user interaction and data representation effectively.

Use Cases & Examples

Use Case 1: Onboarding New Users

Organizations can utilize the Users Management component to quickly add new users to their analytics platform as they scale or onboard new team members. The admin can input necessary details directly into the modal to streamline the process.

Use Case 2: Role Management in Teams

Teams may frequently adjust user permissions based on project dynamics. Administrators can easily edit existing users to grant or revisit the roles within the platform using the user editor modal.

Example Configuration Data:

A real-world scenario might involve an organization needing to add a new marketing user. Here's a sample configuration that might be submitted:

json
{
    "first_name": "Jane",
    "last_name": "Doe",
    "email": "jane.doe@example.com",
    "client_id": 1, // A specific client that this user will be associated with
    "roles": [1, 2], // Array of role IDs that will define the permissions for Jane
    "is_active": true
}

Use Case 3: Removing Inactive Users

An organization could periodically review and remove inactive users within their system to maintain data security and compliance. The deletion process allows administrators to analyze the impact before proceeding, ensuring no essential roles or accesses are unintentionally removed.

By detailing how the Users Management component operates, its expected settings, and practical usage scenarios, organizations can leverage the full capability of user management within the Vantage platform.