Tarantool CE/EE Documentation portal logo
Support
Updated at October 22, 2026   11:37 AM

box.session.uid()

uid()

Returns

the user ID of the current user.

Return type

number

Every user has a unique name (seen with box.session.user()) and a unique ID (seen with box.session.uid()). The values are stored together in the _user space.