WHUserApi::GetTolliumUserByIdAndImpersonation (open)

Returns the tollium user object for a specific user, optionally opened as another user

Syntax

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

RECORD FUNCTION GetTolliumUserByIdAndImpersonation(INTEGER entityid, STRING openas)

Parameters

INTEGER entityid

Entity id of the user

STRING openas

Name of the user that opens this object

Return value

RECORD

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