The CURRENT_UID function returns a unique integer that represents the current user. This UID value is based on the AUTHORIZATION user or role for the currently executing stored routine, or the SESSION_USER if there is no current authorization.