# Option to enable or disable file transfers in the file manager . Restrict who can upload or download data

**URL:** https://discourse.openondemand.org/t/option-to-enable-or-disable-file-transfers-in-the-file-manager-restrict-who-can-upload-or-download-data/2381
**Category:** Feature Requests and Roadmap Discussion
**Tags:** feature-request
**Created:** [November 21, 2022, 11:04am UTC](https://discourse.openondemand.org/t/option-to-enable-or-disable-file-transfers-in-the-file-manager-restrict-who-can-upload-or-download-data/2381 "2022-11-21T11:04:06Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![travert](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/travert/32/3074_2.png) [@travert](https://discourse.openondemand.org/u/travert)
#### Post date: [November 21, 2022, 2:39pm UTC](https://discourse.openondemand.org/t/option-to-enable-or-disable-file-transfers-in-the-file-manager-restrict-who-can-upload-or-download-data/2381/2 "2022-11-21T14:39:18Z")

</div>

Currently there is no way in the initial config to do something like this, however I think we could add something to check whether we want the `view` to display that button depending on the `group`.

We have an issue from someone already about this and I’ve opened an issue to specifically try to build this into the codebase for configuration.

> <https://github.com/OSC/ondemand/issues/1589>
>
> I understand that file upload can be globally disabled as explained here https:/…/osc.github.io/ood-documentation/latest/customization.html#set-upload-limits
> But how to disable it for some users ? or user groups ?
> And vice versa how to disable file download ?
> 
> Thank you
> 
> 
> 
> ┆Issue is synchronized with this \[Asana task\](https://app.asana.com/0/1202821104799596/1202823503508136) by \[Unito\](https://www.unito.io)

And the associated issue I’ve opened to try and build a solution:

> <https://github.com/OSC/ondemand/issues/2373>
>
> \# Request
> We've had some requests coming in to limit the ability to download an…d upload files in the files app based on groups:
> 
> \- https://github.com/OSC/ondemand/issues/1589
> \- https://discourse.openondemand.org/t/option-to-enable-or-disable-file-transfers-in-the-file-manager-restrict-who-can-upload-or-download-data/2381
> 
> This is a ticket to track how to do this.
> 
> \# Possible Solution
> We could use the \`OodSupport\` object to grab the groups for users to at least use some kind of logic in the \`views/files/index.html.erb\` file to check if the user belongs to the \`data-management\` group (or some such name) and render the button only if the user is in that group.
> 
> How to set the actual \`data-management\` group could maybe be done with the \`configuration\_singleton\` by having some one group per site given this accepted role and checked, or maybe an array with many roles appended that is checked. Either way, the idea is to have users set the name of these groups at install with an \`ENV\` variable, then have that list checked in the \`view\` to render the button if a use is in the group.

Sorry that is not possible now, but it is on our radar to do so thank you for the input!

---

_[View the full topic](https://discourse.openondemand.org/t/option-to-enable-or-disable-file-transfers-in-the-file-manager-restrict-who-can-upload-or-download-data/2381)._
