Skip to content
Developer Edition runs on one host and does not require a product license file. Need multi-host deployment or performance testing at scale? Explore Enterprise Edition

SHOW CURRENT_USER command

The SHOW CURRENT_USER command returns information about the currently logged-in user in the current session.

The following table describes the returned information:

Column Description
name The name of the user in the current session.
home_schema The path of the home schema set for the user.
home_graph The home graph set for the user. It consists of the schema path and the graph name. An empty value indicates no home graph is set for the user.
invited_time The time when the user was invited to the current service group.

Syntax

show_users
SHOW CURRENT_USER

show_users ::=
    'SHOW' 'CURRENT_USER'

Examples

The following examples are based on the example dataset.

SHOW CURRENT_USER

Return:

+------+-----------------+-----------------------+-----------------------------+
| name | home_schema     | home_graph            | invited_time                |
+------+-----------------+-----------------------+-----------------------------+
| root | /default_schema | /default_schema/movie | 2025-09-17T05:33:27.301000Z |
+------+-----------------+-----------------------+-----------------------------+