Provides access to system identity and credentials.

Static methods

staticgetCurrentUser():UserInfo

Retrieves information about the current user.

Returns:

UserInfo object or null on failure.

staticgetGroups():Array<GroupInfo>

Alias for listGroups.

Returns:

Array of GroupInfo objects.

staticgetUser(id:Dynamic):UserInfo

Alias for getUserByUid (POSIX) or getUserByName (generic).

Parameters:

id

Either a UID (Int) or a username (String).

Returns:

UserInfo object or null if not found.

staticgetUserByName(name:String):UserInfo

Retrieves information about a user by their username.

Parameters:

name

The username to look up.

Returns:

UserInfo object or null if not found.

staticgetUserByUid(uid:Int):UserInfo

Retrieves information about a user by their UID (POSIX only).

Parameters:

uid

The user ID to look up.

Returns:

UserInfo object or null if not found.

staticlistGroups():Array<GroupInfo>

Retrieves all groups on the system (POSIX only).

Returns:

Array of GroupInfo objects.