How best can I restrict access to shared folder?

How best can I restrict access to shared folder access by some apps? I try to run some apps with specific user access so as to restrict access to some shared folder that is accessed by apps for different business purposes. Due to recent security breach, I try to restrict access to this shared folder, but the apps stop running as required. What other ways can I use to secure the share folder?
