|
Return to Tag List |
|
The USERCONTEXT tag places a script into a new user context. Normally all script
access is with the global user (default). With USERCONTEXT, a different context
can be temporarily used to access restricted server resources.
New user contexts (often referred to as Security Sandboxes) are created
by the system administrator to control access to restricted resources.
|
|
Attributes:
USERNAME | variable or literal string representing username |
PASSWORD | variable or literal string representing password |
|
|
|
The following is an example of USERCONTEXT;
|
|
<!--- Temporary access to restricted resource --->
<SAUSERCONTEXT USERNAME="admin" PASSWORD="abc1323">
<SAQUERY NAME=DbQuery DATASOURCE="RestrictedDS">
SELECT * FROM table
</SAQUERY>
<!--- Access to restricted tag --->
<SAFILE ACTION="Delete"
SOURCE="C:\Server\dataFile.dat">
</SAUSERCONTEXT>
|