Usage Note 69624: Prevent a user or group of users from downloading files in SAS® Studio on Viya
In SAS Studio on Viya, the allowDownload configuration property in the sas.studiov configuration instance allows you to enable or disable the SAS Studio interface icon for download operations in server files and folders within the SAS Studio interface. This property affects all users. However, it does not prevent browsers or code from performing download tasks.
To prevent a user or group of users from downloading files, create an authorization rule that prohibits Read authorization on the download endpoint.
- Log in to SAS® Environment Manager as an Administrator.
- Open the Rules page and select New (icon is a square with asterisk).
- Create the new rule with the following attribute values:
ObjectURI: /SASStudioV/sasexec/sessions/*/workspace/download
Container URI: <leave blank>
Media type: <leave blank>
Principal type: Group
Principal: <the name of the group you want to prevent from downloading>
Rule type: Prohibit
Permission: Read
Description: <add a description of your choice>
Reason: <add a reason of your choice>
Rule status: <enabled>
Here is an example of the New Rule window:
Note that the Download menu item is still visible when you right-click a file. A download request results in an HTTP status code 403 and no action is performed. Also, no message is written to the browser.
Operating System and Release Information
SAS System | SAS Viya 3.x | Microsoft® Windows® for x64 | 3.5 | | Viya 3.5 | |
Linux for x64 | 3.5 | | Viya 3.5 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Date Modified: | 2023-03-06 11:49:56 |
Date Created: | 2022-10-13 11:21:30 |