Difference between revisions of "GetCurrentUserResourceId"

From Catglobe Wiki
Jump to: navigation, search
Line 5: Line 5:
  
 
Returns the Guid of the current thread’s user.
 
Returns the Guid of the current thread’s user.
 +
 +
If getCurrentUserResourceId run outsite qas context, will retun guid of login user
 +
 +
If getCurrentUserResourceId run in qas context, will return guid Impersonation user (Impersonation set on the qnaire)
  
 
'''Syntax'''
 
'''Syntax'''

Revision as of 03:05, 6 September 2019



getCurrentUserResourceId

Returns the Guid of the current thread’s user.

If getCurrentUserResourceId run outsite qas context, will retun guid of login user

If getCurrentUserResourceId run in qas context, will return guid Impersonation user (Impersonation set on the qnaire)

Syntax

getCurrentUserResourceId()

Arguments

none

Return type

string

Examples

string guid = getCurrentUserResourceId();

//"5E652676-D1F2-49E0-A29A-8246F5A7F082"

Availability

Version 4.8