When trying to read a file with a remote agent in CA Process Automation (ITPAM) the error "Access denied. 0 file(s) copied." is returned.
Release : 4.3
Component : Process Automation
This is due to the user that the agent runs as on the server.
This is confirmed when we set the command to run as a different user - that test succeeds. The function works with a manual user set, but not with the agent user. The solution is to correct the user rights of the PAM Agent user.
Running this command grants access to the temp folder:
icacls "%scriptsTempDir%" /grant:r "<username that the agent runs as>"
After this, the temporary files can be created and so the read works.