GetAccessToken() Function
- Last UpdatedJun 02, 2026
- 1 minute read
GetAccessToken () provides authentication token, which will be accepted by controls like Trend Control, Alarm Client Control and other InTouch controls, to support Single Sign-On functionality.
Syntax
The syntax of the script function is as follows:
resultCode = GetAccessToken();
Resultcode indicates the latest access token.
Example:
To get the token value renewed every time it expires you can use the script as follows:
-
In the Symbol Script window, click Add Script.
-
Provide a name to the script.
-
Click the Display Script Function Browser icon.
-
In the Script Browser screen,under InTouch select GetAccessToken to insert the script function or you can manually type.
-
Click OK.

Return Value
The GetAccessToken script function returns the access token with the a token value, if user is authenticated using CONNECT.
The GetAccessToken script function returns an empty string, if user is not authenticated using CONNECT.