WHUserApi::GetTolliumUserFromEntityId (open)

Returns the tollium user object for a specific user

Syntax

LOADLIB "mod::wrd/lib/internal/userapi.whlib";

OBJECT FUNCTION GetTolliumUserFromEntityId(INTEGER entityid)

Parameters

INTEGER entityid

Entity id of the user

Return value

OBJECT

Result - either userobject or error will be set

STRING error

Failure reason

INTEGER impersonatedentity

ID of user or role being impersonated

STRING impersonatedtitle

Logn of the user or title of the role being impersonated

OBJECT impersonatinguser
Possible objecttypes:

Impersonating user

BOOLEAN isimpersonation

Whether this is a (failed) impersonation (generally not requiring a forced logout)

OBJECT userobject
Possible objecttypes:

Tollium user