All Products
Search
Document Center

MaxCompute:GET_USER_ID

Last Updated:Jul 21, 2023

Obtains the ID of the current account, which is the user ID or user identifier (UID).

Syntax

get_user_id()

Parameters

No input parameters are required.

Return value

The ID of the current account is returned.

Examples

select get_user_id();
-- The following result is returned: 
+------------+
| _c0        |
+------------+
| 1117xxxxxxxx8519 |
+------------+

Related functions

For more information, see Other functions.