How to access file explorer files (Drive) in background mode

How can i let a process run in background unattended and access files in file explorer?
I’m able to run it in background locally on my machine, it works fine but once I publish it on production server and it runs unattended then it throws error for “Access denied” or “Could not find a part of the path”

I’ve already tried to check the folder, it exists, and logging into produciton to check if im able to view and add files in the folder is possible.

This is because in background mode the process runs as “NT AUTHORITY\LOCAL SERVICE”, but my question is how can you still make it so that it can read files in file explorer?

Does infrastructure need to add extra configuration to our machines?

@NiesonF

add it to the permission to allow everyone or this nt user as well

cheers