10-28-2019 12:53 PM
hi team
i have came across a requirement in my current project, where i have to disable all dowload buttons in share so that a set of users (organized via groups) can not see download link and can not download the content.
I was able to hide download link and download action for the group using action evaluators.
I took help from this post and made some additional changes to handle group: https://hub.alfresco.com/t5/alfresco-content-services-forum/how-to-disabling-preview-download-in-alf...
Everything works fine. But during unit test i found i was able to download the content using REST "/api/node/content/{storeType}/{storeId}/{id}" api.
Is there a way i can restrict the download on this API or i can disable this api and create custom download API to handle the group checks ?
10-28-2019 05:20 PM
I am not aware if OOTB content download API can be customized to put the restrictions you are looking for. Someone else might provide more thoughts on this.
However you can look at this custom webscript, it may be helpful:
This is custom content download webscript which restircts a group of users from downloding the content.
10-28-2019 05:20 PM
I am not aware if OOTB content download API can be customized to put the restrictions you are looking for. Someone else might provide more thoughts on this.
However you can look at this custom webscript, it may be helpful:
This is custom content download webscript which restircts a group of users from downloding the content.
10-31-2019 12:03 PM
Thanks for help, i was able to create custom download WebScript and able to control the downloads for the set of users.
I want to disable the OOTB download API, can someone help me or guide me if that can be done ?
10-31-2019 01:06 PM
Hi:
You can disable / restrict this download uri in your Apache or nginx frontend.
Regards.
--C.
10-31-2019 02:44 PM
Will give it a try. I was hoping to disable at the repository level though
11-01-2019 09:49 AM
Able to stop users from accessing the OOTB download api by blocking them at proxy layer. It is a workaround
Explore our Alfresco products with the links below. Use labels to filter content by product module.