EvaluationPrivileges
is an option for CloudObject and related cloud functions that specifies what other files and cloud objects can be accessed by evaluations associated with the cloud object.
Details
- EvaluationPrivileges provides protection against unwanted code execution when deploying cloud objects to your cloud account, especially when receiving notebooks from untrusted sources. Notebooks deployed to the cloud support the EvaluationPrivileges option.
- EvaluationPrivileges controls the privileges of evaluations associated with a cloud object once it is created or opened. Whether a user can open a cloud object or not is controlled by Permissions.
- Possible settings for EvaluationPrivileges include:
-
Automatic equivalent to None during server-side rendering of cloud notebooks, and to All otherwise All evaluations can access any other cloud objects the owner has access to None evaluations cannot access any other cloud objects
Examples
Basic Examples (1)
Create a private cloud object containing an expression:
Deploy a notebook with dynamic content that displays the expression, with the default setting for EvaluationPrivileges:
While the notebook is loading and displaying the static HTML pre-rendered on the server, it shows an unresolved expression, since the evaluation during server-side rendering did not have access to the owner's cloud objects:
Once the notebook is fully loaded, it shows the actual expression:
Deploy a notebook that has full access to the owner's files and cloud objects, even during server-side rendering:
Deploy a notebook that has no access to the owner's files and cloud objects, not even when fully loaded:
Text
Wolfram Research (2020), EvaluationPrivileges, Wolfram Language function, https://reference.wolfram.com/language/ref/EvaluationPrivileges.html.
CMS
Wolfram Language. 2020. "EvaluationPrivileges." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/EvaluationPrivileges.html.
APA
Wolfram Language. (2020). EvaluationPrivileges. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EvaluationPrivileges.html