Share this page

# TC.userId

Returns the user ID as it appears in the MDRV command line. MDRV is the main process that runs all protocols.

    TC.userId();

## Arguments

None

## Return value

A promise that is fulfilled with a number upon success. It returns a valid user ID only when running from Controller. Otherwise, it returns -1.

## Example

Copy code

    (async ()=>{
        let userId = await TC.userId();
    })();

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: