I am using the methods below in my AIF service class to download a file on the server.
new FileIOPermission(downloadsDir, "rw").assert();
webClient = new System.Net.WebClient();
webClient.DownloadFile(filePath, downloadedFile);
I have successfully able to download the file in a folder which is accessible to "everyone" and the owner name of downloaded file is showing as AOS service account user.
So my question is that if I need to download the file in a folder with limited rights, I would only need to give permission to AOS user or all the users calling the service would also need permission for the folder.
Hi Hassan,
If you are planning only to run your code only on the server-side, it's enough to give access only to AOS user. Otherwise, each user who will run the operation should have access to the folder.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156