Site-administrator user management.

These endpoints back the admin dashboard user directory. They require a site-admin auth token (Super Administrator or Administrator), and impersonation additionally requires a Super Administrator token.

Constructors

Methods

  • Retrieve aggregated user analytics for the admin directory.

    Supported params include search, is_site_admin, is_verified, user_type, start_date, end_date, period, sort_by, and sort_order.

    Type Parameters

    • T

    Parameters

    • Optional params: Record<string, any>

      Optional query parameters.

    Returns AxiosPromise<default<T>>

    promise

  • Impersonate a user. Issues a JWT for the target account so a Super Administrator can operate as that user. Administrator accounts cannot be impersonated, and every call is written to the impersonation audit log.

    Type Parameters

    • T

    Parameters

    • user_id: string

      The id of the user to impersonate.

    Returns AxiosPromise<default<T>>

    promise resolving to an access token and the impersonated user summary.

  • List and search all users in the system.

    Supported params include search (matches name, username, email, or id), is_site_admin, is_verified, sort_by, sort_order, per_page, and page.

    Type Parameters

    • T

    Parameters

    • Optional params: Record<string, any>

      Optional query parameters.

    Returns AxiosPromise<default<T>>

    promise

  • Retrieve a comprehensive profile for a single user, including communities, administered titles, games played, roles, billing status, social presence, and activity counts.

    Type Parameters

    • T

    Parameters

    • user_id: string

      The id of the user to view.

    • Optional params: Record<string, any>

      Optional query parameters.

    Returns AxiosPromise<default<T>>

    promise

Generated using TypeDoc