In Sitecore Content Hub, all scripts are restricted by default. Restricted scripts have a limited number of useable libraries. The restriction can be disabled for Action scripts, but only restricted scripts can be used in a trigger's In Process action.
Scripts have whitelisted libraries and blacklisted libraries.
Users are allowed to use the following libraries in a script:
One wildcard (
*) means only the classes and objects of that namespace are allowed. It's not possible to use the classes and objects of the embedded namespaces. For example,
System.* allows the use of
System.ArgumentException but not the use of
System.Web.Services.WebService (the first is directly within the
System namespace, unlike the second).
Two wildcards (
**) mean any classes and objects of that namespace or any embedded namespaces are allowed.
Users are not allowed to use the following libraries in a restricted script:
Users are not allowed to use the following attributes in a restricted script:
Disable the restriction
To disable the restriction for an action script, users need to uncheck the 'restricted' option in the script creation screen.
Only Action scripts can be unrestricted. Only restricted action scripts can be used in a trigger's In Process action.