Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

GetCurrentUserResourceId: Difference between revisions

From Catglobe Wiki
No edit summary
No edit summary
Line 8: Line 8:
If getCurrentUserResourceId run outsite qas context, will retun guid of login user
If getCurrentUserResourceId run outsite qas context, will retun guid of login user


If getCurrentUserResourceId run in qas context, will return guid of qasUser or Impersonation user (Impersonation set on the qnaire). See detail here
If getCurrentUserResourceId run in qas context, will return guid of qasUser or Impersonation user (Impersonation set on the qnaire). See detail [[Questionnaire links#Return values for CgScript functions|here]]


'''Syntax'''
'''Syntax'''
Line 31: Line 31:


Version 4.8
Version 4.8
__NOTOC__
__NOTOC__
<!-- imported from file: 715.htm-->
<!-- imported from file: 715.htm-->

Revision as of 02:07, 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 of qasUser or Impersonation user (Impersonation set on the qnaire). See detail here

Syntax

getCurrentUserResourceId()

Arguments

none

Return type

string

Examples

string guid = getCurrentUserResourceId();

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

Availability

Version 4.8