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 entityidEntity id of the user
STRING openasName of the user that opens this object
Return value
RECORDResult - either userobject or error will be set
STRING errorFailure reason
INTEGER impersonatedentityID of user or role being impersonated
STRING impersonatedtitleLogn of the user or title of the role being impersonated
BOOLEAN isimpersonationWhether this is a (failed) impersonation (generally not requiring a forced logout)