All Products
Search
Document Center

PolarDB:USER_USERS

Last Updated:Mar 27, 2026

The USER_USERS view returns information about the current user's account, including account status, lock date, expiry date, and the associated default tablespace.

ColumnTypeDescription
usernameTEXTThe username of the current user.
user_idOIDThe ID of the current user.
account_statusCHARACTER VARYING(32)The current status of the account. For valid values, see Account status values.
lock_dateTIMESTAMP WITHOUT TIME ZONEThe date and time the account was locked. Populated only when account_status is LOCKED.
expiry_dateTIMESTAMP WITHOUT TIME ZONEThe expiration date of the account.
default_tablespaceTEXTThe default tablespace associated with the account.
temporary_tablespaceCHARACTER VARYING(30)Included for compatibility only. Always returns '' (an empty string).
createdTIMESTAMP WITHOUT TIME ZONEIncluded for compatibility only. Always returns NULL.
initial_rsrc_consumer_groupCHARACTER VARYING(30)Included for compatibility only. Always returns NULL.
external_nameCHARACTER VARYING(4000)Included for compatibility only. Always returns NULL.

Account status values

The account_status column returns one of the following values:

Value
OPEN
EXPIRED
EXPIRED(GRACE)
EXPIRED & LOCKED
EXPIRED & LOCKED(TIMED)
EXPIRED(GRACE) & LOCKED
EXPIRED(GRACE) & LOCKED(TIMED)
LOCKED
LOCKED(TIMED)