Skip to content

security.getUserEmail deprecated ​

Get the email address of a user from their user id.

js
security.getUserEmail(userId)

Parameters ​

ParameterTypeDescription
userIdnumberUser ID

Returns ​

string

The user's email address, or null if the user was not found.

Examples ​

js
const email = security.getUserEmail(1234); // "jane.doe@example.com"