Mode Combination for Server Side Protection

The usage of SAP GUI Scripting can be restricted by the means of the profile parameters mentioned in section Modes for Server Side Protection. Two of these parameters are:
  • sapgui/user_scripting_per_user (decide whether SAP GUI Scripting is permitted based on an authorization object S_SCR assigned to users)

  • sapgui/user_scripting_set_readonly (activate a read only version of SAP GUI Scripting for all users)

Up to patchlevel 16 of SAP GUI for Windows 7.40 and patchlevel 3 of SAP GUI for Windows 7.50 these parameters could not be combined. When the parameter sapgui/user_scripting_set_readonly was activated, values for parameters sapgui/user_scripting_per_user were ignored and all users held only read only version SAP GUI Scripting authorizations. Therefore, it was impossible to assign some users full SAP GUI Scripting authorizations and all others read-only SAP GUI Scripting authorizations.

However, there are scenarios in which it may be desired to use a combination of full SAP GUI Scripting support for some users and read-only Scripting support for others (for example when SAP Enable Now is used for all others and full SAP GUI Scripting is required by some other users). Until now, such a scenario could only be realized by assigning the respective user groups to different application servers via dedicated logon groups.

In order to protect customers who are already using the two parameters we have implemented a switch that allows combining the two parameters. The default behavior remains unchanged. You can switch to the new behavior when setting the following registry key (REG_DWORD) to value "1":

64bit operating system:

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\SAP\SAPGUI Front\SAP Frontend Server\Security\ScriptingPerUserAccountExecute

32bit operating system:

HKEY_LOCAL_MACHINE\SOFTWARE\SAP\SAPGUI Front\SAP Frontend Server\Security\ScriptingPerUserAccountExecute

The behavior is as follows:

  • If only sapgui/user_scripting_per_user is set, all users with the authorization object have full SAP GUI Scripting authorizations, all other users have no SAP GUI Scripting authorizations

  • If only sapgui/user_scripting_set_readonly is set, all users have read only SAP GUI Scripting authorizations
  • If both parameters are combined (=new behavior), those users which have the authorization object have full SAP GUI Scripting authorizations, all other users have read only SAP GUI Scripting authorizations

You find more information in SAP Note 2565390 Information published on SAP site. Attached to this note, you find a flow chart that compares the former and new behavior.