Skip to content

security.getUserName deprecated ​

Get the full name of a user from their user id.

js
security.getUserName(userId)

Parameters ​

ParameterTypeDescription
userIdnumberUser ID

Returns ​

string

The user's full name, or null if the user was not found.

Examples ​

js
const userName = security.getUserName(1234); // "Jane Doe"