Skip to content

System.Security.getUsername

Description

Gets the username of the currently logged in user.

Grammar

System.Security.getUsername(): string

 - Parameter

    Nothing

 - Return

    Username

Code Example

Displays the username of the currently logged in person on a label.

const user = System.Security.getUsername();
const label = await System.UI.findControl('Label1');
label.text = user;
label.applyChanges();