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 ?
Solved! Go to Solution.
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.
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.
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 ?
Hi:
You can disable / restrict this download uri in your Apache or nginx frontend.
Regards.
--C.
Will give it a try. I was hoping to disable at the repository level though
Able to stop users from accessing the OOTB download api by blocking them at proxy layer. It is a workaround
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.